search for: documents_path

Displaying 1 result from an estimated 1 matches for "documents_path".

2008 Jul 14
1
Limit the data displayed in the index view with a select box
...where do I start? OK, I can narrow that down a little bit... In my index view, I think I need to include a form with a "go" button, but I don''t really think I can use a "form_for" construct, as this is not a form for my documents controller, so I have: <% form_tag(documents_path, {:method => :get}) do %> <%= submit_tag "Go" %> <% end %> I noticed very quickly that I needed the ":method => :get" option, as I ended up creating a blank record the first time I tried this :-) My narrower, more specific questions go like this: a) Is i...