(追記: この記事よりも、ActiveResourceとかそのルーティングとかのドキュメント - moroの日記 を読んだ方が良いと思います!) (追記その2: restful_authentication の controller_name がバグってたのが直ったようですね。デフォルトもsessions になってます。ですので、以下の記事のsession_controller まわりの記事は現在では不必要になってます) 大幅に書き換えました。hatena.vim rocks. インストール % cd your_rails_project % ./script/plugin install http://svn.techno-weenie.net/projects/plugins/restful_authentication/ controller の作成 % ./script/gen
restful_authentication プラグインのメモ。検証はRails 2.0.2 で行っています。 プラグインについて RESTful なユーザ認証を行う事ができます。 通常のセッションを用いた認証、ベーシック認証、Cookie による認証が利用できます。特にCookie を用いた認証は、ブラウザを閉じた場合でも有効期間内なら有効になります(設定有効時)。 インストール プラグインをインストールします。Rails 1.2.6 以降でないと動作しないので注意して下さい。 また、 authenticated_system.rb はRAILS_ROOT/lib 以下に展開されます。ruby script/plugin install http://svn.techno-weenie.net/projects/plugins/restful_authentication/追記

This is a basic restful authentication generator forrails, taken from acts as authenticated. Currentlyit requiresRails 1.2 (or edge). To use: ./script/generate authenticated usersessions The first parameter specifies the model that getscreated in signup (typically a user or account model). A model with migration iscreated, as well as a basic controller with thecreate method. The second para
先日、toytter(10分で作ったTwitterもどき)をrails-2.0で作り直した時、acts_as_authenticatedが使えて安心してたんですが、実はacts_as_authenticatedのインストール時に DEPRECATED: Use restful_authentication instead. Or, ask me for commit rights if you wish to maintain this plugin. って表示されているのを見落としてました。 acts_as_authenticatedはもうメンテナンスしないから、今後はrestful_authenticationを使ってね、ってことらしい というわけで、Rails2.0時代の認証系スタンダードになるかもしれないrestful_authenticationを使ってみるよ まずはインストール

1リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く