Beginer: Question about routing on Rails 3

I bought this book about rails for beginers (head first Rails) and its quite simple and good for someone who has no clue about Rails (or any other language) On chapter two it talks about routing but unfortunately the book is for rails 2 and i have rails 3 installed on my mac.

The line i have to enter in the config/routes.rb of my application is:

map.connect '/ads/:id', :controller=>'ads', :action=>'show'

but apparently this syntax has changed in rails 3 and i have no clue how to convert it and move on to the next pages.

Can someone please help?

See:

And the rest:

http://edgeguides.rubyonrails.org/index.html

Filippos wrote in post #971185:

I bought this book about rails for beginers (head first Rails) and its quite simple and good for someone who has no clue about Rails (or any other language) On chapter two it talks about routing but unfortunately the book is for rails 2 and i have rails 3 installed on my mac.

Then get a different book. Rails 3 is very different from Rails 2. Check out http://railstutorial.org .

Best,

give one space between map.connect and 'ads/id'

I know about http://railstutorial.org and im that close from buying the pdf and screencast bundle but im worried that it may be too advanced for me. Head First Rails book is in baby rails language assuming , correctly, that the reader has no background at all. Im afraid that railstutorial.org requires a basic knowledge or ruby,rails or any other object oriented language which i lack and i'll end up putting the bundle in a corner.

Please quote when replying.

Filippos wrote in post #971272:

I know about http://railstutorial.org and im that close from buying the pdf and screencast bundle but im worried that it may be too advanced for me.

Well, check it out! The book is available free on the Web as HTML. You only need to pay if you want the PDF file or screencasts.

Head First Rails book is in baby rails language assuming , correctly, that the reader has no background at all.

But it doesn't teach the version of Rails you want, and therefore it is of zero use to you right now.

Im afraid that railstutorial.org requires a basic knowledge or ruby,rails or any other object oriented language which i lack and i'll end up putting the bundle in a corner.

Instead of being afraid, read the free version and judge for yourself. If you need more basic Ruby instruction, there are books for that too.

Best,