Abder-Rahman Ali
2010-Jul-19 09:48 UTC
It worked the first time, but what is happening now?
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 indexCustomized 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Abder-Rahman Ali
2010-Jul-19 10:03 UTC
Re: It worked the first time, but what is happening now?
It worked with identical steps. I just logged out from my machine and logged in. I don''t know if it was returning a cached page all the time. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.