Reputation: 2643
I have a parameter in my url when linking to the New action. I need this parameter in the create action. How do you do it?
Upvotes: 2
Views: 3442
Reputation: 31
I've found that <input type="hidden" name="modal" value="true" />
also works.
Upvotes: 3
Reputation: 16197
You may use a hidden field.
<input id="thing" type="hidden" value="<%= params[:thing] %>" />
Put that code in the new view.
Upvotes: 7