Displaying 2 results from an estimated 2 matches for "khobalatte".
2013 Jul 17
5
Why last doesn't return an ActiveRecord::Relation
Hello,
Sorry if this has been still answered, I haven''t found nothing on it. I
would love to know why ActiveRecord::Base#last doesn''t return an
ActiveRecord::Relation just like all or where since an
ActiveRecord::Relation can act more or less like an array (as specified here<https://github.com/rails/rails/commit/0a6833b6f701c8c8febadfe2f45e25df29493602>
)?
Thanks, have
2013 Jan 04
0
Add data in between Simple Form association members
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