Displaying 1 result from an estimated 1 matches for "homepage_control".
2006 Jan 30
2
Modules, controllers and inheritance
...tup:
app/controllers/
application.rb:
class ApplicationController
admin/
admin_controller.rb:
class Admin::AdminController < ApplicationController
include LoginEngine
include UserEngine
before_filter :authorize_action # method defined by LoginEngine
homepage_controller.rb
class Admin::HomepageController < Admin::AdminController
Now when I try to access HomepageController I get NoMethodError:
undefined method `authorize_action'' for #<Admin::HomepageController:0xb77746c0>
So it seems that HomepageController properly inherits filters bu...