# How RoR extract a http parameterfrom arequest?

**URL:** <https://www.ruby-forum.com/t/how-ror-extract-a-http-parameterfrom-arequest/188369>\
**Category:** Rails\
**Created:** [May 11, 2010, 12:41am UTC](https://www.ruby-forum.com/t/how-ror-extract-a-http-parameterfrom-arequest/188369 "2010-05-11T00:41:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anaconda\_wly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/90db22/32.png) [@anaconda\_wly](https://www.ruby-forum.com/u/anaconda_wly)\
**Post date:** [May 11, 2010, 12:41am UTC](https://www.ruby-forum.com/t/how-ror-extract-a-http-parameterfrom-arequest/188369/1 "2010-05-11T00:41:34Z")

</div>

This is request made from the client:  
new Ajax.Updater(“sip\_tab\_content”,  
“/rails/test\_modules/show/”+$F"boardid"),  
{method :‘get’,  
onFailure:displaySIPTabFailure,  
onComplete:displaySIPTabFailure  
});

This is controller from the ROR controller acting as server:  
class TestModulesController \< ApplicationController  
def index  
@test\_modules = TestModule.find(:all)

```
respond_to do |format|
  format.html # index.html.erb
  format.xml { render :xml => @test_modules }
end

```

end  
def show  
@test\_module = TestModule.find(params[:id])  
#TestModule is a module class accessing database  
respond\_to do |format|  
format.html # show.html.erb  
format.xml { render :xml =\> @test\_module }  
end  
end  
end

# index.html.erb:

The parameter value “($F"boardid”)" passed by Ajax.Updater is taken by  
“id”. I’m a newbie and didn’t know how the “($F"boardid”)" is passed  
into “id”. If I want to add one para after “($F"boardid”)" , how to pick  
it from controller?
