fugafugaにrestful_authenticationをセットアップ。(6) ~ app/models/user_mailer.rbの修正
※「APP_CONFIG~」は、config/config.ymlで定数として定義しています。
# app/models/user_mailer.rb def signup_notification(user) setup_email(user) @subject += 'Please activate your new account' - @body[:url] = "http://YOURSITE/activate/#{user.activation_code}" + @body[:url] = "http://#{APP_CONFIG["settings"]["domain"]}/activate/#{user.activation_code}" end def activation(user) setup_email(user) @subject += 'Your account has been activated!' - @body[:url] = "http://YOURSITE/" + @body[:url] = "http://#{APP_CONFIG["settings"]["domain"]}/" end (略)
こんな感じ?
これでrestful_authenticationのセットアップ、終わり?
他に何かやることあったっけ?
つうか、ね?
いい加減、restful_authenticaionも、loginじゃなくってemailでログインするようにしないかね?www
毎度毎度、こんな事やるの、イヤだよ、オイラはwww