I am new to Rails, and I thought I understood params, but I'm a little
fuzzy on what goes into the controller to access a third value for a
radio button. In my migration I defined the column as a string with a
default value of nil.
The column itself is actually a question(no question mark appears in the
column though)with three choices in the radio button form: yes, no, and
undecided.
Everything works fine, but I don't know how to get undecided to display
in the table instead of yes. I'm sure this is a common scenario, but I
can't seem to get the controller stuff right, HELP! This is what I
currently have in my controller:

def Undecided
#GET /achvrs/Radio_ButtonValues
radio_button_results = params[:undecided_id].split
["Yes" "No" "Undecided"]
PUTS params[:id]
end

Thanks in advance, --Stacey

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedFeb 29, '12 at 12:18a
activeFeb 29, '12 at 12:18a
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Stacey White: 1 post

People

Translate

site design / logo © 2021 Grokbase