Displaying 1 result from an estimated 1 matches for "cond_args".
Did you mean:
col_args
2006 Jun 26
0
options_for_select-how to store cookie selected value ques.
#Controller
cookies[:state] = state
if state != nil and state.to_i != -1
conditions << ''stateid = ?''
cond_args << state
cookies[:state] = state
end
if !cookies[:state].blank?
@default_state = cookies[:state]
else
@default_state = ""
end
# view - html
State:
<td><%= select_tag "st...