Heya,

I'm asking myself what the best method is to use map.root.

I have a table called page with various pages in it.

Default is:
map.root :controller => 'pages'
...would take me to the index. I don't want that.
map.root :controller => 'pages', :action => 'show', :id => 1
...would take me to the first page but if the id changes (remove and add
another page as start page) it wouldn't work anymore
map.root :controller => 'pages', :action => 'home'
...would do that what I'm writing in my own action 'home' but is it
really necessary to create an extra action for that?

How do you guys handle that? Any hints and opinions are highly
appreciated :)
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to