I have an application that has customers and services. Customers has_many services and service belongs_to customer. In the customer show page, I can add or delete services. But I can not edit services, so I'm using best_in_place to do that. but is not working. It returns undefined method `service_path'. I will appreciate any help, I'm new in software.
here is the repository link if you want to check the whole app.
I have an application that has customers and services. Customers has_many services and service belongs_to customer. In the customer show page, I can add or delete services. But I can not edit services, so I'm using best_in_place to do that. but is not working. It returns undefined method `service_path'. I will appreciate any help, I'm new in software.
here is the repository link if you want to check the whole app.
https://github.com/felixpro/ars-reclama/commits/master
I restarted the server, but it keeps returning the same error.
customer/show.html.erb
service_controller.rb
routes.rb