Here is the method to check layout in the controller.
You can debug the controller self object and check there is any layout name like this..
self.action_has_layout?
before_filter :check_and_assign_default_layout
def check_and_assign_default_layout
unless self.action_has_layout?
self.action_has_layout = "my_layout"
end
end
Thank You,
Uma Mahesh.
You can debug the controller self object and check there is any layout name like this..
self.action_has_layout?
before_filter :check_and_assign_default_layout
def check_and_assign_default_layout
unless self.action_has_layout?
self.action_has_layout = "my_layout"
end
end
Thank You,
Uma Mahesh.
No comments:
Post a Comment