I’ve created a simple plugin to extend the functionality of my
controllers. So in my plugins//lib directory I created the
To extend the controllers just put
somewhere in ApplicationController and that’s it… I thought!
I found out that ‘include InstanceMethods’ will only work if my
application is running in ‘development’. When running in ‘production’
calling ‘some_method’ will result in a ActionController::UnknownAction
If I change the ‘include’ line into:
things will work fine, so after all there’s no problem at all, but I’m
just curious of someone of has the same experience and if there’s a
difference between ‘include’ and ‘base.send :include’?
Thanks in advance.
(I’m using Rails 1.2.6).