Forum: Ruby on Rails Add data in between Simple Form association members

Posted by why-el (Guest)
on 2013-01-04 20:58
(Received via mailing list)
Hey there,

I am trying to use Simple Form's association to list a bunch of radio
buttons like so:

  <%= simple_form_for(@applicant) do |f| %>
    <%= f.association :track, :as => :radio_buttons %>
  <% end %>

Assuming each track has many courses, how can I take every track from 
that
association and loop over its courses to display them below the radio
button? After all applicants need to know what each track has.

Best,
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.