Displaying 1 result from an estimated 1 matches for "childcontroller".
Did you mean:
child_controller
2006 Dec 28
0
Localization using inheritance
...;
def initialize
#do something
end
def index
#do something
end
def search
#do something
end
# ...
end
Controller do his job and render page using "mylayout" and views from
"/view/parent" folder. After that, I implemented another controller:
class ChildController < ParentController
layout "mylayout"
def initialize
super
#optionally do something more
end
def index
super
#optionally do something more
render :template => "parent/index"
end
def search
super
#optionally do something more
r...