I would like to read the selected value of radiobuttons on my Form.Now null value saved in my DB. Here is my radio buttons:
<%= w.label :Artikel ,'der' %><%= w.radio_button :Artikel %>
<%= w.label :Artikel ,'die' %><%= w.radio_button :Artikel %>
<%= w.label :Artikel ,'das' %><%= w.radio_button :Artikel %>
and this is my Controlle:
def create
@word=Word.create(params[:word])
if @word.save
redirect_to :action => 'index'
else
render :action => 'new'
end
end
Thank you for your helps