On Jan 17, 2008 2:40 PM, Jennifer Maas <[EMAIL PROTECTED]> wrote:
> I'm just a little concerned about how to tell the controller
> that a particular checkbox is on or off.
The code I sent previously can do this, with one slight modification. See below.
<%= check_box_tag
replace_spaces(category.name),replace_spaces(category.name), false,
:name => "category[#{category.name}]",
:onclick =>
remote_function( :url => { :action => 'add_filter' }, :with => "'#{
replace_spaces(category.name) }=' + this.value + '&checked=' +
this.checked" %>
Have a great day.
-justin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---