Displaying 1 result from an estimated 1 matches for "prepare_user".
2007 Nov 20
3
Plugin: can't call before_filter in ApplicationController
...roller, that I had
in application.rb so far, into a plugin.
I have created this plugin, and in init.rb I load
require File.dirname(__FILE__) + ''/lib/application_controller''
In lib/application_controller.rb I have the following code:
class ApplicationController
before_filter :prepare_user
...
end
This worked without a prolem so far.
But when I try to start Webrick now, I get the following error:
josh$ script/server
=> Booting WEBrick...
/Users/josh/Sites/projects/psyguideorg/vendor/plugins/incense_authorization/lib/application_controller.rb:4:
undefined method `before_filter...