I am using a Rails engine as a gem in my app. The engine has PostsController with a number of methods and I would like to extend the controller logic in my main
PostsController
@cowboycoded method 2 in conjunction with require_dependency and config.reload_plugins worked for me on Rails 3.2.2 / Ruby 1.9.
require_dependency
config.reload_plugins
Here is the code: https://stackoverflow.com/a/9790497/22237