Sha256: 7e050e520e4221668840e6b980673952b8c6302f454b6856b3f3bd559387af1f
Contents?: true
Size: 502 Bytes
Versions: 1
Compression:
Stored size: 502 Bytes
Contents
= PageParts Enable page parts in your model == Install gem "page_parts" rake page_parts_engine:install:migrations == Usage class Category < ActiveRecord::Base include PageParts::ActiveRecordExtension validates_presence_of :title page_parts :content, :sidebar end @category = Category.new @category.content = "Some text" @category.sidebar = "Sidebar text" @category.save == Test rake test Copyright (c) 2011 Aimbulance, released under the MIT license
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
page_parts-0.0.1 | README.rdoc |