Hello, I am upgrading my Rails application from Rails 2 to Rails 3 and I''m having troubles getting routes.rb to work. I get the following error when I visit my application: [code] Routing Error No route matches "/" [/code] When I run "rake routes", the output is blank. What I have already done: - Googled and searched this forum for the problem - Checked that routes.rb is in the correct location - Created a syntax error in routes.rb--the error is recognized, so the file is loaded - I removed public/index.html - I have gone through my routes.rb and think it has the correct syntax Here is my routes.rb file: http://pastie.org/private/gi1js8shnuqt3tncxglxw I would appreciate any suggestions about where to look for the problem. Thank you, - Peter Akkies -- 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 20 April 2011 00:35, Peter Akkies <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hello, > > I am upgrading my Rails application from Rails 2 to Rails 3 and I''m > having troubles getting routes.rb to work. I get the following error > when I visit my application: > > [code] > Routing Error > No route matches "/" > [/code] > > When I run "rake routes", the output is blank. > > What I have already done: > - Googled and searched this forum for the problem > - Checked that routes.rb is in the correct location > - Created a syntax error in routes.rb--the error is recognized, so the > file is loaded > - I removed public/index.html > - I have gone through my routes.rb and think it has the correct syntax > > Here is my routes.rb file: > > http://pastie.org/private/gi1js8shnuqt3tncxglxwMy rails 3 app routes .rb starts MyAppName::Application.routes.draw do yours has no draw. Could this be the issue? 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.
Hi Colin, Now I''m getting errors from my routes.rb file, which is promising! I''ll let you know whether it ends up working well after I fix the bugs. Thank you, - Peter -- 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.