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.
Member Type
<%= f.radio_button :membertype, :class => ‘radio button’ %> Member
<%= f.radio_button :membertype, :class => ‘radio button’ %>
Non-Member
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.
Member Type
<%= 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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.