Displaying 2 results from an estimated 2 matches for "bazcontroller".
Did you mean:
barcontroller
2006 May 04
1
Ways to share code among the ''layout''
Is there a way to use the same code accross multiple layouts. Normally,
I am associating a layout with a particular controller? Is there a
cleaner way.
--
Berlin Brown
(ramaza3 on freenode)
http://www.newspiritcompany.com
http://www.newspiritcompany.com/newforums
also checkout alpha version of botverse:
http://www.newspiritcompany.com:8086/universe_home
2008 Apr 02
3
Routing and default module
I would like to route all requests with the path
"foo/:controller/:action" to a modulized controller like
''bar/#{controller}''. So "foo/bro/index" goes to Bar::BroController,
"foo/baz/index" goes to Bar::BazController, etc.
I''m stumped as to how to write a one-line route for this. What I want to
do is something like
map.connect ''foo/:controller/:action'', :controller =>
''bar/#{controller}''
but that doesn''t pass muster.
Any ideas?
Thanks-
Danny
--
P...