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, 

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/ogfBoCQyu3oJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to