Not sure exactly what the issue is...

Create a model (say, SearchQueries) and whenever anybody hits your
search controller — presumably you only want to capture full queries
and not auto-complete requests – save the query into the database.

If you're using an autocomplete search which provides links direct to
particular pages, you may also need to capture these - probably by
appending a parameter to the address and making sure that you create
and save a search query when someone hits those pages straight from
the autocomplete list.

-Matt

On Jun 9, 12:30 pm, Remco Swoany <[email protected]>
wrote:
> Hi,
>
> We got a search form (with autocomplete) for airlinetickets. The idea is
> that we want to store the search query of all our visitors in our
> database. The objective is to add this info to our management info.
>
> Someone ideas?
>
> remco
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to