Forum: RForum how params initialise

Posted by Sunny Bogawat (sunny_bogawat)
on 2008-09-12 08:48
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.
Posted by Tushar Gandhi (tushar_gandhi)
on 2008-10-01 07:37
Sunny Bogawat 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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.