2008年12月3日水曜日

忘れる前に、書いておく。

restful_authenticaionの、今、現時点でのリポジトリでは、インストール/ジェネレートで、ほとんどの設定が自動的になされます。
あと、plugin名にハイフンが含まれている為、Name Errorがでるので、インストール後のディレクトリ名は、「restful-authentication」ではなく、「restful_authenticaion」にしなければなりませぬ。
あと、gitのリポジトリから取ってくる事になるかと。
あと、rubyist-aasmに対応させます。
$ cd ~/Rails/hogehoge
$ git clone git://github.com/technoweenie/restful-authentication.git vendor/plugins/restful_authentication
$ script/generate authenticated user sessions --aasm
そんで、app/controllers/application.rbに、以下を追記。
require 'aasm'
簡単やね:-)

0 件のコメント: