前回、ユーザ認証の機能を導入するところまでできたので、ルーティングを加えてそれっぽく(?)してみます(restful_authentication の本質とは関係ない・・・)。 参考 http://d.hatena.ne.jp/idesaku/20080430/1209579996http://api.rubyonrails.org/classes/ActionController/Routing.html 前回までで、ルーティングのためのヘルパメソッド login_url logout_url signup_url が使えるようになっているので、これらを使います。 まず、認証が必要なコンテンツを作成。 $ script/generate controller secret index secret_controller.rb に before_filter を追加。 # app/cont