I am attempting to investigate the object state during a login process.
I need instruction in the correct technique to emulate filling out an
html form and submitting it within the rails console.

Given a login form at /user_session/new with fields :username and
:password and a submit button.

$ script/console
...
>> app.new_user_session_path
=> "/user_session/new"
>> @params = { :password => 'mypassword', :username => 'myuser' }
=> {:password=>"mypassword", :username=>"myuser"}

Now, how do I submit this to the create action of the
user_sessions_controller?
-- 
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 [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