In my development environment I turn email off. Then create new users, whether invitation guest users or standard users with the form - then check my logs for the email sent to user and grab the invitation link.
in `config/environments/development.rb' change:
config.action_mailer.delivery_method = :smtp
to
config.action_mailer.delivery_method = :false
Then you can grab the email body from the logs and use the link.
You can always change the token if you need to.
User.resend_invitation!(:email => "joeblow@lalaland.com")
You can also work it from the command line side:
User.invite!(:email => "joeblow@lalaland.com", :name => "Joe Blow")
To skip the user email you can do:
User.invite!(:email => "joeblow@lalaland.com", :name => "Joe Blow") { |user| user.skip_invitation => true }
And to accept it from the command line:
u = User.find_by_email("joeblow@lalaland.com")
User.accept_invitation!(:invitation_token => u.invitation_token, :password => "ad97nwj3o2")