2006-08-01から1ヶ月間の記事一覧

selectの応用

サブクエリの内容をコレクション要素として取得する方法 "id",:conditions => "project_id="+session[:project].id.to_s).collect {|p| [ p.user.lastname, p.user.id ] }, { :include_blank => true }) %> collectってあったっけ???

plugin LoginEngine

プラグインリポジトリの発見 ruby script/plugin discover エラーが出てうまくいかない(以下MSG) ・ ・ ・ Add http://svn.rtra.in/public/plugins/? [Y/n] (eval):3:in `each': undefined method `[]' for nil:NilClass (NoMethodError) from C:/ruby/lib…