「Ruby on Rails 3」の編集履歴(バックアップ)一覧はこちら
Ruby on Rails 3 - (2011/06/11 (土) 02:02:51) の1つ前との変更点
追加された行は緑色になります。
削除された行は赤色になります。
**Ruby
ターミナルでの実行
ruby ~~.rb
**rails
[[rails3の変更点>http://assets.en.oreilly.com/1/event/40/The%20Rails%203%20Ropes%20Course%20Presentation.pdf]]
[[rails3>http://kray.jp/blog/url_reference_for_rails3/]]
[[rails3:routeまとめ>http://irohiroki.com/2010/08/29/rails3-routes]]
[[rails3: ユーザー認証>http://www.oiax.jp/rails/rails3/authentication1.html]]
[[Twitter認証>URL]]
[[renderとredirect_toの違い>http://trwtnb.blogspot.com/2009/11/rubyrailsrenderredirectto.html]]
./script/rails console
[[Rails link_toメソッドで指定するパス>http://wine4u.seesaa.net/article/170059428.html]]
mailのセッティング
重要; http://guides.rubyonrails.org/action_mailer_basics.html
Gmailの設定:
config.action_mailer.delivery_method = :smtp
11/04/21 23:31
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => 'domain name',
:user_name => 'username',
:password => 'password',
:authentication => 'plain',
:enable_starttls_auto => true,
}
参考: http://d.hatena.ne.jp/shunsuk/20110110/1294657636
ActionMailer: http://d.hatena.ne.jp/willnet/20100429/1272513819
console上でのテスト: RegisterMailer.test_mail("").deliver
mailer.rbの中身:
class RegisterMailer < ActionMailer::Base
default :from => "bando.rui@gmail.com"
def register_mail(user)
mail(:to => "bando.rui@gmail.com", :subject => "Welcome to My Info Site")
end
end
[[Devise>http://www.oiax.jp/rails/rails3/authentication1.html]]
[[railsでクッキーとセッションまとめ>http://d.hatena.ne.jp/willnet/20080531/1212239850]]
[[ユニークインデックス>http://d.hatena.ne.jp/akio0911/20080416/1208362266]]
**Ruby
ターミナルでの実行
ruby ~~.rb
**rails
[[rails3の変更点>http://assets.en.oreilly.com/1/event/40/The%20Rails%203%20Ropes%20Course%20Presentation.pdf]]
[[rails3>http://kray.jp/blog/url_reference_for_rails3/]]
[[rails3:routeまとめ>http://irohiroki.com/2010/08/29/rails3-routes]]
[[rails3: ユーザー認証>http://www.oiax.jp/rails/rails3/authentication1.html]]
[[Twitter認証>http://www35.atwiki.jp/banrui/pages/20.html]]
[[mail設定/Gmail連携>URL]]
[[renderとredirect_toの違い>http://trwtnb.blogspot.com/2009/11/rubyrailsrenderredirectto.html]]
./script/rails console
[[Rails link_toメソッドで指定するパス>http://wine4u.seesaa.net/article/170059428.html]]
[[Devise>http://www.oiax.jp/rails/rails3/authentication1.html]]
[[railsでクッキーとセッションまとめ>http://d.hatena.ne.jp/willnet/20080531/1212239850]]
[[ユニークインデックス>http://d.hatena.ne.jp/akio0911/20080416/1208362266]]