It is doing the correct action but doing it for all the text fields.
If for instance I type good in to the second search field (search for
genre) it will do so, but it will also produce the text in the other two
search fields and search for good in genre and console and then only
produce a results that would match all three. if I was to comment out
the other two searches and in my controller comment out two of the three
search lines it would allow me to search.
Therefore I have narrowed it down to two problems.
Either that in my controller it is taking the params[:search] as one
function or that in my view I have incorrect code that is producing text
in all fields, possibly this line as it is the same for all three:
<%= text_field_tag :search, params[:search] %>
<%= submit_tag t('.searchb'), :game_name => nil %>
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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-talk?hl=en.