James Byrne wrote:
>
> Evidently I am not getting the form data to the controller. So, if some
> kind soul would care to demonstrate to me how this is accomplished
> within the console then I will be most grateful.
>
I figured it out.
$ script/console
>> app.new_user_session_path
=> "/user_session/new"
>> @params = { :user_session => { :password => 'mypass', :username => 'myname',
>> :remember_me => '0' } }
=> {:user_session=>{:remember_me=>"0", :password=>"mypass",
:username=>"myname"}
>> app.post app.user_session_path @params
=> 200
Ta Daa... we're in.
--
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
-~----------~----~----~----~------~----~------~--~---