It is inside condition_for_foo_column() in controller.

On Jun 3, 12:11 pm, [email protected] wrote:
> Possible, where are you running the statement?
> Sent from my Verizon Wireless BlackBerry
>
> -----Original Message-----
> From: rvhi <[email protected]>
>
> Date: Wed, 3 Jun 2009 15:09:56
> To: ActiveScaffold : Ruby on Rails plugin<[email protected]>
> Subject: Re: save search conditions in session
>
> Still the same. The error 'Symbol as array index' indicates the :blah
> in session[:blah] is the problem. If I use
>     session['blah'] = value,
>
> the error becomes,
>    can't convert String into Integer
>
> Is this because where the statement is run?
>
> On Jun 3, 3:50 am, [email protected] wrote:
> > Try session[:blah] = value.to_date
>
> > ------Original Message------
> > From: rvhi
> > Sender: [email protected]
> > To: ActiveScaffold : Ruby on Rails plugin
> > ReplyTo: [email protected]
> > Subject: save search conditions in session
> > Sent: Jun 3, 2009 3:58 AM
>
> > Hi,
>
> > I try to save search conditions into session data. So later I can
> > reuse the same search conditions, e.g. date range.
>
> > The only thing I can think of is the following inside
> > condition_for_foo_column.
> >      session[:foo] = value
>
> > However rails spits an error,
> >     Symbol as array index
>
> > Can someone give some suggestion?
>
> > Thanks,
>
> > Sent from my Verizon Wireless BlackBerry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to