skip confirmation e-mail in development with devise
As simple as that
user=User.new
user.email="[email protected]"
user.password="yourPassword"
user.skip_confirmation!
user.save
Devise has also a method skip_confirmation! that you can call on the model before saving it to avoid sending the mail. It simply sets the confirmed_at
attribute which results in skipping the mail sending.
try Letter Opener gem from Ryan Bates
https://github.com/ryanb/letter_opener
it will open the email in the browser without sending it. You don't want to be skipping stuff out if you're in development because stuff will get missed/forgotten about.