Forum: Ruby on Rails How to go back to the Home page

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Pepe S. (Guest)
on 2008-10-11 15:47
Hi all

My home page is called index.hml and it is located under the Public
folder. When I am creating a new record in a controller I type:

 - http://mysite/mycontroler/new

when this page opens if I click in the menu Home, it redirects me to
  - http://mysite/mycontroler/new

instead of "index.html" in the public folder.

Please advice

thanks
Pepe S. (Guest)
on 2008-10-11 19:19
I need to link_to my home page  index.html located inside the public
folder
Hunt J. (Guest)
on 2008-10-11 19:43
(Received via mailing list)
Basically, you need to delete index.html in public folder before
starting to develop.
We don't use it. It's just there to see if Rails is running fine and
show "Welcome aboard" message.
Youssef Chaker (Guest)
on 2008-10-12 02:37
(Received via mailing list)
By default, Rails directs to the index.html file in the public folder
unless you add map.root :controller => "something"... in the routes.rb
file
so if you haven't changed that, all you have to do is edit the
index.html file the way you want it. if the app automatically
redirects to the controller, check in your routes.rb file.

hope that helps
--BC

On Oct 11, 11:19 am, Pepe S. <removed_email_address@domain.invalid>
This topic is locked and can not be replied to.