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
I have been following some tutorial to learn some basics
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.
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
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:
(4th edition coming in a month, about Rails3).
Or this is free:
and also very good!
And do not be afraid from another database servers than mysql, default
settings are the best for first ridings!
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: Pragmatic Bookshelf: By Developers, For Developers
(4th edition coming in a month, about Rails3).
And do not be afraid from another database servers than mysql, default
settings are the best for first ridings!
good luck,
gezope
Thanks 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
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.