I was walking through this simple Rails guide:
http://guides.rubyonrails.org/getting_started.html

I'm concentrating here in the map.root route and having a page to show
when navigating to http://localhost:3000 instead of the default one.

I will tell you what I did, and just wonder what I have missed?

> Rails blog
> cd blog
> script/generate controller home index

Customized the index.html.erb of "home" and inserted some content (i.e;
This is the homepage)

Then, removed the index.html.erb in the "public" directory.

After that, in "routes.rb", I inserted as the "first" line after
ActionController::Routing::Routes.draw do |map|

map.root :controller => "home"

What am I missing?

Thanks.
-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to