Displaying 1 result from an estimated 1 matches for "learning_cav".
Did you mean:
learning_cave
2009 Feb 27
0
Contextually aware controllers
...t call it
from multiple places and have it respond differently depending on the
context. Here''s an example:
/admin/pages/new - shows the new page form using the layout for the
admin area (might also do some permission checking on the side that''s
only relevant to the admin area)
/learning_cave/pages/new - shows the same view and uses the same
controller but uses a different layout and possibly some other checks
that are only relevant for caves.
I''ve been attempting to do this with restful routing and
polymorphic_path (because I won''t know the context ahead of time) bu...