Hi, I have created the url "http://localhost:3000/groups/home?group_id=1&parent_id=3". I have one method in which I am able to access the url parameters by using params[:group_id] and params[:parent_id]. My question is that how the params hash is get created? and who creats this hash? Thanks, Tushar -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Sep-26 13:48 UTC
Re: How the url parameters are mapped to params hash?
On 26 Sep 2008, at 14:15, Tushar Gandhi wrote:> > Hi, > I have created the url > "http://localhost:3000/groups/home?group_id=1&parent_id=3". > I have one method in which I am able to access the url parameters by > using params[:group_id] and params[:parent_id]. > My question is that how the params hash is get created? and who creats > this hash?ActionController creates it for you (grungy details in request.rb) Fred> > > Thanks, > Tushar > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en > -~----------~----~----~----~------~----~------~--~--- >