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
on 2008-10-11 15:47
on 2008-10-11 19:19
I need to link_to my home page index.html located inside the public folder
on 2008-10-11 19:43
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.
on 2008-10-12 02:37
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. <firstname.lastname@example.org>