# How params initialise

**URL:** <https://www.ruby-forum.com/t/how-params-initialise/148370>\
**Category:** Ruby-Forum\
**Created:** [September 12, 2008, 8:48am UTC](https://www.ruby-forum.com/t/how-params-initialise/148370 "2008-09-12T08:48:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunfish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/96bed5/32.png) [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Post date:** [September 12, 2008, 8:48am UTC](https://www.ruby-forum.com/t/how-params-initialise/148370/1 "2008-09-12T08:48:32Z")

</div>

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.
```

---

<div class="post-metadata">

**Author:** ![sunfish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/96bed5/32.png) [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Post date:** [October 1, 2008, 7:37am UTC](https://www.ruby-forum.com/t/how-params-initialise/148370/2 "2008-10-01T07:37:11Z")

</div>

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
