2012-10-26から1日間の記事一覧

複数人の予定の1週間表示について考える

とりあえず動作することを目標にする。Redmineを参考にしている。 コントローラー def week if params[:year] and params[:year].to_i > 1900 @year = params[:year].to_i if params[:month] and params[:month].to_i > 0 and params[:month].to_i < 13 @mon…

AR:has_manyなときの扱い

1:多というか1:nというかSchool:Classという場合の注意事項(for おれ) 検索結果にclassの内容が要らないとき hoge=Scool.find(:all, :include=>:class, :conditions=>["class.name='hoge'"]) ホゲをキーにして、schoolの内容が取得できる。 hogeの年齢とか…