Hi All, I am going through the getting started guide here http://guides.rubyonrails.org/getting_started.html And in section 5.7 it refers to a code snippet that I don''t understand what to do with it. post GET /posts/:id(.:format) posts#show I don''t understand if I am supposed to put this code somewhere or not. The guide doesn''t tell me exactly. I also noticed the same sort of code is discussed in section 5.8 where it mentions posts GET /posts(.:format) posts#index Any help would be great. Thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/28e251a2-bd24-4ad8-b661-2114fff1a0ec%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On Sun, Dec 1, 2013 at 4:54 PM, Eric Blow <ericblow-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi All, > I am going through the getting started guide here > http://guides.rubyonrails.org/getting_started.html > And in section 5.7 it refers to a code snippet that I don''t understand > what to do with it. > post GET /posts/:id(.:format) posts#show > > I don''t understand if I am supposed to put this code somewhere or not. The > guide doesn''t tell me exactly. > I also noticed the same sort of code is discussed in section 5.8 where it > mentions > posts GET /posts(.:format) posts#index > Any help would be great. >That''s `rake routes` output, and translates roughly to: `get "/posts/:id", :to => "posts#show", :as => :post` in config/routes.rb -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnx5MEwxb9yR9eMd%3DogDP2q6_tEKEmCJq5vA0gCOJENNhQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
On 1 December 2013 22:54, Eric Blow <ericblow-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi All, > I am going through the getting started guide here > http://guides.rubyonrails.org/getting_started.html > And in section 5.7 it refers to a code snippet that I don''t understand > what to do with it. > post GET /posts/:id(.:format) posts#show > > I don''t understand if I am supposed to put this code somewhere or not. The > guide doesn''t tell me exactly. > I also noticed the same sort of code is discussed in section 5.8 where it > mentions > posts GET /posts(.:format) posts#index > Any help would be great. > >I suggest working through the tutorial at railstutorial.org (which is free to use online). For absolute beginners I think it is better than the rails guide. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLswVAn9QypQHd4OJx%2BBZZh6n4G4VGKQ-zJ%2BCVeUg4AacQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.