Ruby On Rails: access link_to parameter in controller
===

Say I have two buttons in my model's index view that are used to create a new instance of the model. I want to pass the variable `:number` to my controller and use it in the `new` function so I can alter my form slightly depending on which button was pressed. How can I access `:number` in the controller?


    <%= link_to 'New Run 1', new_test_suite_run_path, :class => "btn btn-custom1" , :number => 1 %>
    
    <%= link_to 'New Run 2', new_test_suite_run_path, :class => "btn btn-custom1", :number => 2 %>

