Default page?

4 views
Skip to first unread message

Barry

unread,
Apr 12, 2009, 7:04:54 AM4/12/09
to Ruby on Rails: Goldberg
I'm struggling with something on Goldberg. I want the default page for
the public role to be a controller / action, and not a content page.

How do I change that?



Thanks

Barry

James Silberbauer

unread,
Apr 14, 2009, 8:08:02 AM4/14/09
to rubyonrail...@googlegroups.com
Place the following at the bottom of your routes.rb:

map.connect '/', :controller => 'controllername', :action => 'actionname'
map.connect ':controller/:action/:id.:format'
map.connect ':controller/:action/:id'

James

Barry Kukkuk

unread,
Apr 14, 2009, 8:09:39 AM4/14/09
to rubyonrail...@googlegroups.com
Thanks James! I should have known that. I just somehow thought it was a Goldberg Setting! :-)
--
Barry Kukkuk
www.btgtech.co.za - You Photoshop, we Database

Reply all
Reply to author
Forward
0 new messages