Send response from View/HAML into params/controller

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'

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs