the problem is that @values should be an array, but it is not (i.e, the
params[:prefs] is nil) - check to see if it is being passed correctly.
second off, not closley related to the problem, but for some reason it’s
helped me before with cookies -
add an expires opt as well:
:expires => Time.now + 10.days
the cookie can expire out, when you don’t want it too… it’s better to
add an expire opt as well as the value (you can add a Time.now +
10.years if you don’t really want it expiring …)
the problem is that @values should be an array, but it is not (i.e, the
params[:prefs] is nil) - check to see if it is being passed correctly.
second off, not closley related to the problem, but for some reason it’s
helped me before with cookies -
add an expires opt as well:
:expires => Time.now + 10.days
the cookie can expire out, when you don’t want it too… it’s better to
add an expire opt as well as the value (you can add a Time.now +
10.years if you don’t really want it expiring …)
hth
Well it seems to be passed correctly, as it works the first time and
then fails any subsequent times!
I added the ‘expires’ option shortly after my post so i’m sure it’s not
this causing the problem.
Anyone any more ideas?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.