(Let me preface by saying I am at a beginners level).
I would like to set the variable params[:question_type] which is in
a view to “assembler” in order to use it in the controller…
I have tried the following…
<%= link_to ‘New Assembler’,
session[:minisection][:id], params[:question_type]=> “assembler”) %> |
What I am doing does not work.
My question is how do I set the params[:question_type] in the view and
then access in in the controller? (I need it to be set based on the
link_to button selected)