It’s so easy …

you just have to know.

After setting up your rails application, you have a default homepage. It is shown, when you call “http://localhost:3000/”. You can change the default homepage in the routes.rb file. Sounds easy. I changed the file and added the following line at the bottom:

map.connect ”, :controller => ‘window’, :action => ‘list’

Quite disappointing: the old start page was still there. After some googling around, I found out what to do. You also have to remove the static index.html in the /public folder.

… you just have to know …

HerrKaiser | Posted in ruby on rails |

Bookmark on del.icio.us  Bookmark on del.icio.us     Bookmark on digg  Bookmark on digg

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.