In the "Head First Rails" book, it mentions the following: If the matching route contains symbols, then the Routing system will create "matching parameters" in the request parameters table params[. .. ]..... I want to ask about matching parameters. Does that mean that if we have the following symbols: :id :controller :action So, does "create "matching parameters" in the request parameters table params[. .. ]" mean the following: params[:id, :controller, :action] And, one final thing. What is the "Routing system"? Is it routes.rb? Thanks. -- 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.
I think params[...] should NOT be written as I wrote it in my question like this: params[:id, :controller, :action]? It should be written as follows instead? params[:id] params[:controller] params[:action] ? Or, both are the same? -- 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.
On Aug 16, 4:48 pm, Abder-Rahman Ali <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> > And, one final thing. What is the "Routing system"? Is it routes.rb? >It''s a bit more than that - routes.rb is the means by which you configure the routing system, which could be broadly described as the part of rails that dispatches incoming requests to individual controller actions. Fred -- 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.
Frederick Cheung wrote:> On Aug 16, 4:48�pm, Abder-Rahman Ali <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > >> >> And, one final thing. What is the "Routing system"? Is it routes.rb? >> > It''s a bit more than that - routes.rb is the means by which you > configure the routing system, which could be broadly described as the > part of rails that dispatches incoming requests to individual > controller actions. > > FredThanks. -- 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.