# Fundamental question: passing params

**URL:** <https://www.ruby-forum.com/t/fundamental-question-passing-params/72680>\
**Category:** Rails\
**Created:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/fundamental-question-passing-params/72680 "2006-10-18T10:40:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/fundamental-question-passing-params/72680/1 "2006-10-18T10:40:33Z")

</div>

I maybe missing something here. I have an ajax’ed search form,  
parameters  
are passing correctly, but they are not showing up in the action.  
I can see the parameters :

Request  
_Parameters_: {“city”=\>“Boston”, “asearch”=\>“category\_id=2”,  
“title”=\>“Admin”, “term\_id”=\>“8”, “state\_id”=\>“3”}

When I try to get them in the action they are being directed too I get a  
nil./ nomethod error.

I think last week I had a problem where i was told that when there is a  
redirect to a different action the instance variable won’t carry over.  
Is  
that what’s happening here. I solved the last issue by saving the  
params to  
the session, but would prefer not to do that here.

TIA  
Stuart

–

> **[Dark ambient](https://en.wikipedia.org/wiki/Dark_ambient)**
>
> Dark ambient (referred to as ambient industrial especially in the 1980s) is a genre of post-industrial music that features an ominous, dark droning and often gloomy, monumental or catacombal atmosphere, partially with discordant overtones. It shows similarities with ambient music, a genre that has been cited as a main influence by many dark ambient artists, both conceptually and compositionally. Although mostly electronically generated, dark ambient also includes the sampling of hand-pla 
> The te...

---

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/fundamental-question-passing-params/72680/2 "2006-10-18T10:40:52Z")

</div>

Hi –

On Fri, 13 Oct 2006, Dark A. wrote:

> I maybe missing something here. I have an ajax’ed search form, parameters  
> are passing correctly, but they are not showing up in the action.  
> I can see the parameters :
> 
> Request  
> _Parameters_: {“city”=\>“Boston”, “asearch”=\>“category\_id=2”,  
> “title”=\>“Admin”, “term\_id”=\>“8”, “state\_id”=\>“3”}
> 
> When I try to get them in the action they are being directed too I get a  
> nil./ nomethod error.

It’s hard to help you with your code if you don’t provide it 🙂

David

–  
David A. Black | removed\_email\_address@domain.invalid  
Author of “Ruby for Rails” [1] | Ruby/Rails training & consultancy [3]  
DABlog (DAB’s Weblog) [2] | Co-director, Ruby Central, Inc. [4]  
[1] [Ruby for Rails](http://www.manning.com/black) | [3] [http://www.rubypowerandlight.com](http://www.rubypowerandlight.com)  
[2] [http://dablog.rubypal.com](http://dablog.rubypal.com) | [4] [http://www.rubycentral.org](http://www.rubycentral.org)

---

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [October 18, 2006, 10:40am UTC](https://www.ruby-forum.com/t/fundamental-question-passing-params/72680/3 "2006-10-18T10:40:52Z")

</div>

Sorry David, it looked like this post never went through and there is a  
new  
one. I’ll call this one closed.

Stuart

On 10/13/06, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > 
> 
> David
> 
> –  
> David A. Black | removed\_email\_address@domain.invalid  
> Author of “Ruby for Rails” [1] | Ruby/Rails training & consultancy [3]  
> DABlog (DAB’s Weblog) [2] | Co-director, Ruby Central, Inc. [4]  
> [1] [Ruby for Rails](http://www.manning.com/black) | [3] [http://www.rubypowerandlight.com](http://www.rubypowerandlight.com)  
> [2] [http://dablog.rubypal.com](http://dablog.rubypal.com) | [4] [http://www.rubycentral.org](http://www.rubycentral.org)
> 
> >

–

> **[Dark ambient](https://en.wikipedia.org/wiki/Dark_ambient)**
>
> Dark ambient (referred to as ambient industrial especially in the 1980s) is a genre of post-industrial music that features an ominous, dark droning and often gloomy, monumental or catacombal atmosphere, partially with discordant overtones. It shows similarities with ambient music, a genre that has been cited as a main influence by many dark ambient artists, both conceptually and compositionally. Although mostly electronically generated, dark ambient also includes the sampling of hand-pla 
> The te...
