Displaying 1 result from an estimated 1 matches for "videocontroller".
Did you mean:
videoscontroller
2011 Jul 14
0
subclasses with inherited_resources?
...ce 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 call inherit_resources again at the top of
VideoController, so it reloads all of inherited_resources default
a...