Rails - escaping backslashes in params causing havoc?
问题 I have a form that passes the same parameters as the form before it: <%= form_tag({:controller => "workouts", :action => "random"}) do %> <%= hidden_field_tag :workout, params[:workout] %> <%= hidden_field_tag :time, params[:time] %> <%= submit_tag "Get Another", :class => 'btn' %> The first form works fine, the second form to "get another" gives me the error can't convert Symbol into Integer for this line: @equipment_ids = params[:workout][:equipment_ids].collect{|s| s.to_i} The params of