Seek out the API docs grasshopper...
>From http://api.rubyonrails.org/
Module
ActionView::Helpers::FormHelper
radio_button(object_name, method, tag_value, options = {})
Returns a radio button tag for accessing a specified attribute
(identified by method) on an object assigned to the template (identified
by object). If the current value of method is tag_value the radio button
will be checked. Additional options on the input tag can be passed as a
hash with options.
Let's say that @post.category returns "rails":
radio_button("post", "category", "rails")
radio_button("post", "category", "java")
Or
radio_button("user", "receive_newsletter", "yes")
radio_button("user", "receive_newsletter", "no")
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---