How params initialise


#1

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.

#2

Sunny B. 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?

         Thanks.

Hi,
Action Controller creates these params for us.
For detail refer to request.rb of action controller
Tushar