Ruby on Rails
Saturday, July 31, 2010
On Jul 31, 5:03 pm, Manu Lorenzo <li...@ruby-forum.com> wrote:
> def try_to_login(user, options = {})
> user_hash = {:screen_name => user.screen_name, :password =>
> user.password}
> user_hash.merge!(options)
> post :login, :user => :user_hash
You meant to write :user => user_hash
Fred
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment