boulder-food-rescue / food-rescue-robot

A Rails App for Managing "Just in Time" Food Rescue, Developed by/for Boulder Food Rescue in Boulder, CO, USA
49 stars 56 forks source link

Extract interactors from complex controller actions #95

Open ericfreese opened 7 years ago

ericfreese commented 7 years ago

See https://github.com/collectiveidea/interactor and a5c59b6

jconley88 commented 7 years ago

What does the data look like under "schedules_attributes"?

https://github.com/boulder-food-rescue/food-rescue-robot/blob/master/app/controllers/schedule_chains_controller.rb#L159

ericfreese commented 7 years ago

@jconley88 Did you ever get the app up and running locally? If so, you should be able to stick a binding.pry in there and submit the form for editing a schedule chain. If you need some sample data you can run bundle exec rake db:sample_region to create a new sample region and populate it with volunteers, locations, schedule chains, etc.