I would like to create a link that pass a parameter, so I don’t have to ask it in the form.
Something like this :
<%= button_to "New", new_skill_path(:controller => "skills",:action => "new", :request => "true") %>
I can show that the parameter is taken… but on my view, The <%= f.text_field :request %> is not “true” ?
(idem if I add :post)
Try to don’t use @request because Rails Use the request method, and I prefer to use link_to instead of button_to, anyway you will send your data by get method.
Views
or …… I think this one is much better
Controller