おもしろwebサービス開発日記

Ruby や Rails を中心に、web技術について書いています

2012-12-09から1日間の記事一覧

factory_girl で関連先の属性を動的に設定して作成する方法

下記のような UserGroup, User, Blog があるとします。 # == Schema Information # # Table name: user_groups # # id :integer not null, primary key # name :string(255) # created_at :datetime not null # updated_at :datetime not null # class UserG…