Update main_controller.rb

Allow :has_many_associations to pass through