问题
I need to implement a custom Responder under "Module Responders", however, I am not sure where such code should live?
回答1:
This is typically what the lib
directory is for.
Just be sure to update your config/application.rb
file to include lib
in autoload_paths
.
回答2:
I usually drop them in app/responders
来源:https://stackoverflow.com/questions/5995178/where-should-custom-responders-go-in-a-rails-project