Forum: Ruby-Forum.com how params initialise

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3548d30217e9921c410db19ce8ce38d0?d=identicon&s=25 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.
Acb42a0e563bffaaf94ea2d07fbb1d8e?d=identicon&s=25 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
This topic is locked and can not be replied to.