On Jun 23, 2008, at 5:30 AM, jason wrote:
> i have two radio buttons (member/non-member), and would like to set
> the
> price of adding attendees to a meeting based on the selection of the
> radio button. A shopping cart seems like over-kill for this, but other
> than that i''m stuck.
>
> <label for="membertype">Member Type</label>
> <%= f.radio_button :membertype, :class => ''radio
button'' %> Member
> <%= f.radio_button :membertype, :class => ''radio
button'' %> Non-
> Member
Store the value of the radio in a session -- then you can reuse that
value anywhere you need to.
-- gw
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---