I want to pass the response from current status and desired status form tab into parmas of “link_to change status button”.
form-group
%label.control-label Current status
= select_tag :current_status, content_tag(:option, ' State', :value=>"") + options_for_select(sample.values)
.form-group
%label.control-label Desired Status
= select_tag :desired_status, content_tag(:option, ' State', :value=>"") + options_for_select(sample.values)
.form-group
= link_to("Change status", {:month => @month, :year => @year, :current_state => x, :desired_state => y, :controller => "status", :action => "status_change"}, class:'btn btn-primary'