why do you want to link to it from index? do you mean an actual
"link_to" hyperlink? or do you mean that you want it to display
INSTEAD
of index?
if the latter, in your routes.rb file put:
map.connect '''', :controller => ''site'',
:action => ''show''
if your site were at www.mysite.com and your user tried to go there they
would be redirected to the show action of the site controller....
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---