« Mac OSX, subclipseで日本語のファイル更新でエラー | メイン | tomcat5でシンボリッックリンクを有効にする »

2006年06月30日

redirect_toでの起こりがちな問題

ひとつのアクションに複数のredirect_toがある場合、return falseした方がいいと。

One problem with this is that the redirect_to may cause an error with multiple redirects if another redirect_to comes down the line. A simple fix is to add "and return false" after the redirect_to: redirect_to :protocol => "https://" and return false unless (...)

http://www.styledbits.com/articles/2006/06/04/adding-ssl-to-your-rails-app-in-5-minutes

投稿者 tokuyama : 2006年06月30日 10:34

トラックバック

このエントリーのトラックバックURL:
http://www.harasho.biz/cgi-bin/mt/mt-tb.cgi/308

コメント

コメントしてください




保存しますか?