Sha256: f55c24945dfce9691e69faa820dcc29b28b8918aef2573b6255a8474d195fd00
Contents?: true
Size: 637 Bytes
Versions: 7
Compression:
Stored size: 637 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 With suffixes: page_parts :main, :left, :sidebar, :suffix => [:ru, :en, :uk] Generates main_ru, main_en, main_uk, left_ru ... == Test rake test Copyright (c) 2011 Aimbulance, released under the MIT license
Version data entries
7 entries across 7 versions & 2 rubygems