I am new to rails and so have a very basic question. I have defined a
set of radio buttons in _form.html like this:
<%= radio_button_tag(:colour, "Blue") %>
<%= label_tag(:colour_B, "Blue") %>
Now I want to read the value of the radio button. Eg: if the user chose
"Blue", then I want to display the user's name in a table under the
column Blue. I already defined the table in index.html and I have a
model called usertable that I previously defined on the command line
rails generate scaffold usertable name:string colour:text
I don't know how to actually read in the value of radio button. Do I
define it somehow in the def show block in the controller? ...
Thanks so much. Any help is appreciated!