what is the correct way to set a default homepage with rails? So when a
user goes to www.first.snowmaninthesun.com they are automatically
redirected to www.first.snowmaaninthesun.com/first/view instead of
seeing “Welcome aboard You’re riding Ruby on Rails”! ??
i have tried setting my routes to
map.connect ‘’ :controller=> ‘first’, :action => ‘view’
but this doesn’t seem to do anything.
*links are to a demo rails app, no advertising or anything inappropriate
Remove the index.html from the public directory of your application.
That’s the “this file” in step 3 of the welcome page.
On Mon, Jun 30, 2008 at 7:49 PM, Richard S.
Richard S. wrote:
what is the correct way to set a default homepage with rails? So when a
user goes to www.first.snowmaninthesun.com they are automatically
redirected to www.first.snowmaaninthesun.com/first/view instead of
seeing “Welcome aboard You’re riding Ruby on Rails”! ??
i have tried setting my routes to
map.connect ‘’ :controller=> ‘first’, :action => ‘view’
but this doesn’t seem to do anything.
*links are to a demo rails app, no advertising or anything inappropriate
wow, my first answer to a post!! And its my own!!
make sure you go to you public folder and delete index.html within your
rails app and then set your routes as defined above! should work!