Form:
<%= form_for :computer do |f| %>
<%= f.radio_button :state, value: 'on' %>
<%= f.radio_button :state, value: 'off' %>
<% end %>
Outputs:
params[:computer][:state]
{:value=>"on"}
params[:computer][:state].class
String
params[:computer][:state][:value]
No implicit conversion of string into integer
params[:computer][:state]['value']
value
No, there is no .to_s anywhere! :)
There is this question, but it's been unanswered since 2011 and is for a different version of rails.