2009-05-28から1日間の記事一覧
今日たまたまRailsのリファレンスを眺めていて見つけたのですが。下記のようなBlogモデルとEntryモデルがあるとします。 class Blog < ActiveRecord::Base has_many :entries end class Entry < ActiveRecord::Base belongs_to :blog end Blogモデルのインス…
今日たまたまRailsのリファレンスを眺めていて見つけたのですが。下記のようなBlogモデルとEntryモデルがあるとします。 class Blog < ActiveRecord::Base has_many :entries end class Entry < ActiveRecord::Base belongs_to :blog end Blogモデルのインス…