Save 36% for Black Friday! Learn more

New Discussion

Notifications

You’re not receiving notifications from this thread.

find_each from association

0
Rails

Hello someone could explain mehow could i do a find_each that give me all the records associate to my model
This is the structure Venue -> has_many :services and Services -> belongs_to Venues
Im new in rails

@venue.services.find_each do |service|
service.create_all
end

Join the discussion
Create an account Log in