adding parameter as a hidden field in rails form

Problem
You want to add a hidden field that contains a url parameter in a rails form.

Solution
Use the following in your form view (ie new.html.erb):
<%= f.hidden_field :hidden_field_name, { :value => params[:url_param_value]} %>