No clue how to do this, this would be a better question for stack overflow
or rubyonrails-talk group. Providing an example of what you're truing to
achieve would help. Please re-post this question to either of those places.


On Tue, Dec 3, 2013 at 12:40 PM, Anton Kuzmin <[email protected]>wrote:

> Is it possible to serialize the "query builder data" part of
> ActiveRecord::Relation and use it later to query the database with exactly
> the same query?
>
> to_sql is not suitable
>
> My task is to have reload a div that contains a list of records got from
> DB. It can be taken from DB via simple search, detailed search, via
> selecting a category, selecting an item in category, so I thought that the
> simplest way is to store serialized and encrypted query data inside a div,
> which can be used to refresh itself.
>
> Maybe there is an alternative way I don't know of?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to