Rails : Devise : What happens when you create a brand new resource (`user` in my case)

When you create a brand new resource that is mapped to Devise then it is obvious that it sends a confirmation link to the email. Along with that it saved the sent confirmation token in the database to verify it against the one that user later claims to be valid which he got from email.

#<User id: 41,
email: "jobsmith@example.com",
encrypted_password: "",
reset_password_token: nil,
reset_password_sent_at: nil,
remember_created_at: nil,
sign_in_count: 0,
current_sign_in_at: nil,
last_sign_in_at: nil,
current_sign_in_ip: nil,
last_sign_in_ip: nil,
created_at: "2015-09-04 03:17:42",
updated_at: "2015-09-04 03:17:42",
first_name: "UnConfirmed Brand New User",
last_name: "Bates",
customer_admin_id: nil,
admin_id: nil,
confirmation_token: "2ccbd6cd6d31b05537922a1f01521560e9b7edd37210ae75eff...",
confirmed_at: nil,
confirmation_sent_at: "2015-09-04 03:17:42",
organization_id: 3,
status: "active",
middle_name: "",
type: nil,
cell_number: "",
phone_number: "1231312312",
extension: "">

One thought on “Rails : Devise : What happens when you create a brand new resource (`user` in my case)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s