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> wrote: > Hi, > > This is my log-file output of the usercontroller. > > Processing UsersController#index (for 92.64.217.3 at 2009-07-30 > 08:57:46) [GET] > Parameters: {"commit"=>"Search", "date"=>"", "arrival"=>"barcelona", > "departure"=>"amsterdam"} > > What is the correct way the store the params in de database based on the > current_user? > > 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 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 -~----------~----~----~----~------~----~------~--~---