restful_authenticationは、ログイン認証という限定された機能を、適度なサイズで提供してくれている。ログイン認証には多くのRailsの技が駆使される傾向にあり、コードを眺めていると勉強になることが多い。今回はモジュールの使い方に注目してみた。 restful_authentication classic版のUserモデルの実装は以下のようになっている。 保存データの検証、アクティベーションに関する処理、パスワードのエンコード・デコード・照合、ログイン状態の維持等、とても多くのことをこなしている。 # ---------- app/models/user.rb ---------- require 'digest/sha1' class User < ActiveRecord::Base # Virtual attribute for the unencrypted pas
RailRoad is a class diagram generator for Ruby on Rails applications.RailRoad is a class diagrams generator for Ruby on Rails applications. It's a Ruby script that loads the application classes and analyzes its properties (attributes, methods) and relationships (inheritance, model associations like has_many, etc.) The output is a graph description in the DOT language, suitable to be handled w
1 Myles Braithwaite says… Just a simple test. Posted at 12:06 a.m. on September 5, 2007 2 she says… cmon man, you can provide us with more info! ;-) Posted at 6:59 a.m. on September 6, 2007 3 Keeran says… So you're using more RAM now. Is that what you wanted to point out? How many sites? Posted at 7:51 a.m. on September 6, 2007 4 Kaaren says… So you're using less RAM now. Is that what you wa
Redmine¶ Table of contentsRedmineFeaturesDocumentationSupport & getting helpContributing and helping outWho uses Redmine?Redmine books Redmine is a flexible project management web application. Written using the Ruby on Rails framework, it is cross-platform and cross-database. Redmine is open source and released under the terms of the GNU General Public License v2 (GPL). Features¶ Some of the main
What a day. Apparently getting John Lam'd is worse than getting Slashdotted. My team has been laughing at me all day; we have no idea how I get into messes like this. Rather than reply individually to the crush of email, I guess I'll just do a bulk update. But first: is anyone else as nonplussed as I am that of all the amazing things that were discussed in Foo Camp, my little improvised talk -- co
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く