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? -- 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.
See: http://edgeguides.rubyonrails.org/routing.html And the rest: http://edgeguides.rubyonrails.org/index.html -- 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.
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, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org Sent from my iPhone -- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
give one space between map.connect and ''ads/id'' On Dec 29, 6:13 am, djangst <djan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> See: > > http://edgeguides.rubyonrails.org/routing.html > > And the rest: > > http://edgeguides.rubyonrails.org/index.html-- 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.
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.> Then get a different book. Rails 3 is very different from Rails 2. > Check outhttp://railstutorial.org. > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > Sent from my iPhone > > -- > 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org Sent from my iPhone -- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.