I am trying to do something like this:
session[:continent][:filter] = params[:filter]
but it does not work, I got this error:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]=
source
share