# Strange param mixup

**URL:** <https://www.ruby-forum.com/t/strange-param-mixup/107911>\
**Category:** Rails\
**Created:** [June 27, 2007, 11:30am UTC](https://www.ruby-forum.com/t/strange-param-mixup/107911 "2007-06-27T11:30:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![milo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@milo](https://www.ruby-forum.com/u/milo)\
**Post date:** [June 27, 2007, 11:30am UTC](https://www.ruby-forum.com/t/strange-param-mixup/107911/1 "2007-06-27T11:30:10Z")

</div>

I have some code looking like this:

**\<%= var %\>**

equals less than greater than less or equals greater or equals not equal to is DEFAULT

What I’d expect this to produce for each “var” is:

1. A checkbox with the value params[:search\_param][“var”] equal to 0 if  
unchecked, 1 if checked.
2. A drop down menu that puts a value of 1-7 (default 1) in  
params[:param\_sym][“var”]
3. A text box that takes user input and places in  
params[:param\_value][“var”]

What it actually does is:

1. params[:search\_param] is not created.
2. params[:param\_sym][“var”] is always set to “1”
3. The param value part actually works.

Would anyone mind explaining what I have done wrong?
