Displaying 1 result from an estimated 1 matches for "collection_radio_button".
Did you mean:
  collection_radio_buttons
  
2014 Apr 06
0
collection_check_boxes with has_many through: association Rails 4
I am trying to list all the categories a user can be interested in with 
check boxes so that a user can submit these interests through my join table.
collection_radio_buttons works with a simple has_many, belongs_to 
association:
<%= collection_radio_buttons(:listing, :category_id, Category.all, :id, 
:name do |b| %>
     <%= b.label { b.radio_button} %>
     <%= b.text %>
<% end %>
I am not sure how to go about this so that I can get all the...