I''m following the tutorial here: http://edgeguides.rubyonrails.org/getting_started.html And have set the route as: root :to => "home#index" But, always get the DEFAULT Rails page. What could I be 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.
On Fri, Aug 13, 2010 at 03:26:58PM +0200, Abder-Rahman Ali wrote:> I''m following the tutorial here: > http://edgeguides.rubyonrails.org/getting_started.html > > And have set the route as: > > root :to => "home#index" > > But, always get the DEFAULT Rails page. > > What could I be missing?You didn''t delete/rename public/index.html, at a guess. -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \
Daniel Bye wrote:> On Fri, Aug 13, 2010 at 03:26:58PM +0200, Abder-Rahman Ali wrote: >> I''m following the tutorial here: >> http://edgeguides.rubyonrails.org/getting_started.html >> >> And have set the route as: >> >> root :to => "home#index" >> >> But, always get the DEFAULT Rails page. >> >> What could I be missing? > > You didn''t delete/rename public/index.html, at a guess.I actually did delete public/index.html. -- 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.
On 13 August 2010 14:59, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Daniel Bye wrote: >> On Fri, Aug 13, 2010 at 03:26:58PM +0200, Abder-Rahman Ali wrote: >>> I''m following the tutorial here: >>> http://edgeguides.rubyonrails.org/getting_started.html >>> >>> And have set the route as: >>> >>> root :to => "home#index" >>> >>> But, always get the DEFAULT Rails page. >>> >>> What could I be missing? >> >> You didn''t delete/rename public/index.html, at a guess. > > I actually did delete public/index.html.What default rails page are you getting? If it looks remarkably like public/index.html used to look before you deleted it, and you really have deleted it, then perhaps the browser has cached it or something. Quickly make a new rails app and have a look at index.html if forget what it looked like. Look carefully in public and make sure you have not left something lying around. I presume you have re-started everything and still see the problem. Colin -- 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.
On Fri, Aug 13, 2010 at 09:59, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I actually did delete public/index.html.Colin suggests that your browser may be caching it; there may be additional levels of caching going on. AFAIK Rails doesn''t automagically wanted-but-deleted default pages (like how Windows will restore many missing files), but perhaps either it does now, or some bizarre gem you''ve installed does so. Check if it''s there now. If so, don''t delete it again, but edit it, and make it completely different. Then see what your browser shows you. If it''s still the old version, press Shift while refreshing the page (^R, F5, or whatever your browser uses). If it''s STILL the old one, then let''s worry about your routing. Problems like these often turn out to be something trivial, while the geeks are hunting down the hairy sort of problem they LIKE to solve.... :-) -Dave -- Specialization is for insects. -RAH | Have Pun, Will Babble! -me Programming Blog: http://codosaur.us | Work: http://davearonson.com Leadership Blog: http://dare2xl.com | Play: http://davearonson.net * * * * * WATCH THIS SPACE * * * * * | Ruby: http://mars.groupsite.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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks a lot everyone. It seems that it may be a cache problem. I deleted the application and created it from scratch and now it works fine. -- 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.
On 13 August 2010 21:58, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Thanks a lot everyone. > > It seems that it may be a cache problem. I deleted the application and > created it from scratch and now it works fine.I will remember that solution. Next time I want to clear the cache I know I just have to delete the app and recreate it from scratch. Excellent. Colin -- 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.
Colin Law wrote:> On 13 August 2010 21:58, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> Thanks a lot everyone. >> >> It seems that it may be a cache problem. I deleted the application and >> created it from scratch and now it works fine. > > I will remember that solution. Next time I want to clear the cache I > know I just have to delete the app and recreate it from scratch. > Excellent. > > ColinColin, I really didn''t clear the cache, but deleted the application from scratch. I suggested that the cache is the issue since I did the exact same steps and it worked in the second 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.