Hi:
I have radio buttons like this in my view:
<%= radio_button :goals, :goaltype_id, ''Recurring'', {
:onclick => "new
Effect.SlideDown(''recurring''); return false;" }
%> Recurring<br />
<%= radio_button :goals, :goaltype_id, ''One-time'', {
:onclick => "new
Effect.SlideDown(''onetime''); return false;" }
%> One-time<br
/>
<%= radio_button :goals, :goaltype_id, ''Compound'', {
:onclick => "new
Effect.SlideDown(''compound''); return false;" }
%> Compound<br />
<%= radio_button :goals, :goaltype_id, ''Elapsed'', {
:onclick => "new
Effect.SlideDown(''elapsed''); return false;" }
%> Elapsed<br
/>
Everything is working fine. My problem is that the value of "One-time"
etc., isn''t really the value back to the object of "goal",
but instead
it''s actually a FK to another table, where "one-time"
corresponds to
"goaltype_id" numeric in the table goal.
My problem is that the the value of the "goaltype_id" isn''t
being
comitted back to the table with the goal. How would I make this work?
Thanks very much in advance for your time.
Mike
--
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-/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
-~----------~----~----~----~------~----~------~--~---