jhaagmans wrote:
> If I understand correctly you want to log these searches in the
> database, so you would probably want to do something like:
> 
> Search.new(:date => params[:date], :arrival => params
> [:arrival], :departure => params[:departure], :user_id =>
> current_user.id).save
> 
> You might need to change current_user.id to match the way you call
> your current user.
> 
> I could have misinterpreted the question, of course. Please tell me.
> 
> Kind regards,
> Jaap Haagmans
> w. http://www.relywebsolutions.nl
> 
> On 30 jul, 09:03, Remco Swoany <rails-mailing-l...@andreas-s.net>

Hi Jaap,

Zie dat je ned bent, dus ik vervolg in het ned.

Het gewenste proces is als volgt.

1)Gebruiker logt in
2)Zoekt in zoekbox op vertrek en aankomst + datum (bijv amst - 
barcelona, 22 maart 2010)
3)Waarde van de zoekbox (search[params] moeten worden doorgegeven aan 
externe-url (partner)
3)De zoekcriteria opslaan zodat men later kan zien wat men heeft 
gezocht. (gekoppeld aan user_id)

Heb jij ideeen? Bedankt alvast!

Remco

-- 
Posted via http://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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to