Ruby on Rails
Thursday, May 30, 2013
Now i've played a bit and see that when in view i have:
- @tags.each do |tag| = check_box_tag("q[tags_id_eq_all][]" , tag.id, {}) = tag.nameevery checkbox in html is set to "checked" by default.
If i make it false, like this:
- @tags.each do |tag| = check_box_tag("q[tags_id_eq_all][]" , tag.id, false, {}) = tag.nameCheckboxes are nit checked by default, but it doesn't send query with tags_ids array at all, even if i click on them.
Can't figure out, how can i get it working..
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8c785914-87c1-49ff-9402-0bc438a0db24%40googlegroups.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment