How to manually create a new user and user session in Devise?

You can create a new Devise user simply by creating a new user model (see https://github.com/plataformatec/devise/wiki/How-To:-Manage-users-through-a-CRUD-interface) @user = User.new(:email => ‘test@example.com’, :password => ‘password’, :password_confirmation => ‘password’) @user.save To sign in your newly created user, use sign_in @user

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

I ran into a similar problem when trying to use the JQuery generator for Rails 3 I solved it like this: Get the CURL Certificate Authority (CA) bundle. You can do this with: sudo port install curl-ca-bundle [if you are using MacPorts] or just pull it down directly wget http://curl.haxx.se/ca/cacert.pem Execute the ruby code that …

Read more