Rails

Rails-erd

Rails3でモデルのER図を出す graphvizのインストール $sudo aptitude install graphvizRails3のGemfileに以下を追記group :development do gem "rails-erd" endbundle $bundle installERD.pdfを作成 $rake erd

Carrierwave

目的 ファイルのアップロード 参考 carrierwaveインストール gem 'carrierwave' r g scaffold paint name:string r g uploader image r g migration add_image_to_paints image:string app/models/paint.rb attr_accessible :name, :image mount_uploader :i…

Rails3.0 で Devise と CanCan を動かす

目的 認証と権限 参考 https://github.com/plataformatec/devise https://github.com/ryanb/cancan http://d.hatena.ne.jp/lounge1975/20110215/1297833886 http://d.hatena.ne.jp/next49/20100905/p1 http://d.hatena.ne.jp/babie/20100729/1280381392 環境…