Hi People, Ultra noob here. I recently installed Ruby 1.9.2 and Rails 3.0 on Ubuntu10.04. I have mysql server version 5.1 installed. I also have the mysql2 database connector *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.0) actionpack (3.0.0) activemodel (3.0.0) activerecord (3.0.0) activeresource (3.0.0) activesupport (3.0.0) arel (1.0.1) builder (2.1.2) bundler (1.0.0) erubis (2.6.6) i18n (0.4.1) mail (2.2.5) mime-types (1.16) mysql (2.8.1) mysql2 (0.2.3) polyglot (0.3.1) rack (1.2.1) rack-mount (0.6.12) rack-test (0.5.4) rails (3.0.0) railties (3.0.0) rake (0.8.7) sqlite3-ruby (1.3.1) thor (0.14.0) treetop (1.4.8) tzinfo (0.3.23) I have been following some tutorial to learn some basics http://www.tutorialspoint.com/ruby-on-rails/rails-views.htm So far I have been able to do everything until I start the Webrick server(this is fine and can be seen running in the terminal) Then when I enter http://localhost/book/list instead of seeing the error listed in the tutorial about a missing template (you''re supposed to go onto create list.rhtml etc) I get a different error Routing Error No route matches "/book/list" I have no idea what this is on about. From google searches I understand there is a routes.rb file which I have opened. But I am not sure what I need to change in here or even if this is the real cause of the issue. Any help much appreciated. I am very excited to be learning Ruby and would really like to be able to complete this tutorial so I can begin my own web apps. -- 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.
that tutorial is based on Rails 2.1, which could be the cause of your issue. I would recommend railstutorial.org, to get you up and running with Rails 3 Jason On Wed, Sep 1, 2010 at 12:03 PM, Samuel Jackson <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> Hi People, > > Ultra noob here. I recently installed Ruby 1.9.2 and Rails 3.0 on > Ubuntu10.04. I have mysql server version 5.1 installed. I also have the > mysql2 database connector > > *** LOCAL GEMS *** > > abstract (1.0.0) > actionmailer (3.0.0) > actionpack (3.0.0) > activemodel (3.0.0) > activerecord (3.0.0) > activeresource (3.0.0) > activesupport (3.0.0) > arel (1.0.1) > builder (2.1.2) > bundler (1.0.0) > erubis (2.6.6) > i18n (0.4.1) > mail (2.2.5) > mime-types (1.16) > mysql (2.8.1) > mysql2 (0.2.3) > polyglot (0.3.1) > rack (1.2.1) > rack-mount (0.6.12) > rack-test (0.5.4) > rails (3.0.0) > railties (3.0.0) > rake (0.8.7) > sqlite3-ruby (1.3.1) > thor (0.14.0) > treetop (1.4.8) > tzinfo (0.3.23) > > > I have been following some tutorial to learn some basics > > http://www.tutorialspoint.com/ruby-on-rails/rails-views.htm > > So far I have been able to do everything until I start the Webrick > server(this is fine and can be seen running in the terminal) > > Then when I enter http://localhost/book/list instead of seeing the error > listed in the tutorial about a missing template (you''re supposed to go > onto create list.rhtml etc) > > I get a different error > > Routing Error > > No route matches "/book/list" > > I have no idea what this is on about. From google searches I understand > there is a routes.rb file which I have opened. But I am not sure what I > need to change in here or even if this is the real cause of the issue. > > Any help much appreciated. I am very excited to be learning Ruby and > would really like to be able to complete this tutorial so I can begin my > own web apps. > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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 Samuel, yes, this tutorial is pretty old. The other one, which suggested here, is not free of charge. If you are up to pay for a book, than I would suggest Pragmatice Bookshelf''s books: http://www.pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition (4th edition coming in a month, about Rails3). Or this is free: http://guides.rubyonrails.org/ and also very good! And do not be afraid from another database servers than mysql, default settings are the best for first ridings! :) good luck, gezope On szept. 1, 19:03, Samuel Jackson <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi People, > > Ultra noob here. I recently installed Ruby 1.9.2 and Rails 3.0 on > Ubuntu10.04. I have mysql server version 5.1 installed. I also have the > mysql2 database connector > > *** LOCAL GEMS *** > > abstract (1.0.0) > actionmailer (3.0.0) > actionpack (3.0.0) > activemodel (3.0.0) > activerecord (3.0.0) > activeresource (3.0.0) > activesupport (3.0.0) > arel (1.0.1) > builder (2.1.2) > bundler (1.0.0) > erubis (2.6.6) > i18n (0.4.1) > mail (2.2.5) > mime-types (1.16) > mysql (2.8.1) > mysql2 (0.2.3) > polyglot (0.3.1) > rack (1.2.1) > rack-mount (0.6.12) > rack-test (0.5.4) > rails (3.0.0) > railties (3.0.0) > rake (0.8.7) > sqlite3-ruby (1.3.1) > thor (0.14.0) > treetop (1.4.8) > tzinfo (0.3.23) > > I have been following some tutorial to learn some basics > > http://www.tutorialspoint.com/ruby-on-rails/rails-views.htm > > So far I have been able to do everything until I start the Webrick > server(this is fine and can be seen running in the terminal) > > Then when I enterhttp://localhost/book/listinstead of seeing the error > listed in the tutorial about a missing template (you''re supposed to go > onto create list.rhtml etc) > > I get a different error > > Routing Error > > No route matches "/book/list" > > I have no idea what this is on about. From google searches I understand > there is a routes.rb file which I have opened. But I am not sure what I > need to change in here or even if this is the real cause of the issue. > > Any help much appreciated. I am very excited to be learning Ruby and > would really like to be able to complete this tutorial so I can begin my > own web apps. > -- > Posted viahttp://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.
Zoltan Gero wrote:> Hi Samuel, > > yes, this tutorial is pretty old. The other one, which suggested here, > is not free of charge. If you are up to pay for a book, than I would > suggest Pragmatice Bookshelf''s books: > http://www.pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition > (4th edition coming in a month, about Rails3). > > Or this is free: > http://guides.rubyonrails.org/ > and also very good! > > And do not be afraid from another database servers than mysql, default > settings are the best for first ridings! :) > > good luck, > gezopeThanks to both for replies. I have bought Beginning Ruby which I am going through to learn the basic Program API, syntax etc but I really wanted to learn the rails framework. You are both right, the tutorial is old. I was having to substitute commands such as ruby script/server for rails server right from the off. I deleted the previous directory structures I had created and started again following this tutorial instead http://edgeguides.rubyonrails.org/getting_started.html Everything is going well so far so I guess it was just the age of the tutorial. Thanks for the replies though. Onwards and upwards. -- 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.