Displaying 1 result from an estimated 1 matches for "inherit_resources".
Did you mean:
inherited_resources
2011 Jul 14
0
subclasses with inherited_resources?
...owever, one
problem I''ve run into is that it''s very difficult to customize
inherited_resource behaviour in subclasses. Looking through the
source I see it uses things like undef_method and class_attribute.
For example, if I have the following controllers:
class ItemsController
inherit_resources
actions :new, :create
def create
# custom stuff here
creat!
end
end
class VideoController < ItemsController
actions :new, :create, :show
end
videos controller will not respond to /show because
inherited_resources undefined it in ItemsController. One thing I
tried was to cal...