Strange param mixup


#1

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?