The first signup

現在來實際註冊吧!

name: Rails Tutorial

email: [email protected]

成功註冊畫面如下,包含了歡迎訊息:

如果重整頁面的話,歡迎訊息就會消失:

然後可以進入 Rails console,確認使用者已經存進資料庫:

$ rails console
> User.find_by(email: "[email protected]")
=> #<User id: 2, name: "Rails Tutorial", email: "[email protected]", created_at: "2016-03-11 09:41:20", updated_at: "2016-03-11 09:41:20", password_digest: "$2a$10$up2vAn3StcqBZsCPHISilOnoGk4jZzO7Pn.0yQGVjJn...">