Edited my view, so now checkboxes for tags look like:
- @tags.each do |tag|
= check_box_tag("q[tags_id_eq_all][]", tag.id, {})
= tag.name
So in console i can see such query:
Processing by ProjectsController#index as HTML
Parameters: {"utf8"=>"✓", "q"=>{"budjet_gteq"=>"", "budjet_lteq"=>"",
"tags_id_eq_all"=>["1", "2", "3", "4", "5", "6"]}}
So now, it passes all tags, even though i've selected only two of them. As
the result it shows all projects, when i want to show only one, with two
tags which i've checked.
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/64f653db-bcda-413a-b255-616001f4c3df%40googlegroups.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.