Params hash in rails

Hi,
I want to know that how ‘params’ get created in rails?
when http: request comes we have get all parameter using hash params
e.g:- params[:id]
But in ActionController how params get created and how it is
initialised there?
Also what is scope for params?

         Thanks.

On Sep 12, 7:48 am, Sunny B. [email protected]
wrote:

Hi,
I want to know that how ‘params’ get created in rails?
when http: request comes we have get all parameter using hash params
e.g:- params[:id]
But in ActionController how params get created and how it is
initialised there?
Also what is scope for params?

It’s created from the request body and query string (details of the
parsing are in request.rb).
It’s an instance method on controllers (which views can call via the
usual magic).

Fred

Could you explain me this in detail ?

On 12 Sep 2008, at 09:09, Sunny B. wrote:

Could you explain me this in detail ?

Unless there’s something specific you’re after you’re better off
reading the code yourself. It’s just a bunch of regexpy type things
pulling apart the query string/form data

Fred