Rails 3 generator for a complete and beautiful scaffold.
Switch branches/tags
Nothing to show
Pull request Compare This branch is 210 commits behind rivsc:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/generators
CHANGELOG
Gemfile
MIT-LICENSE
README.rdoc
beautiful_scaffold.gemspec

README.rdoc

Beautiful Scaffold

Beautiful Scaffold is a gem which propose generators for a complete scaffold with paginate, sort and filter. Fully customizable. More info : www.beautiful-scaffold.com/ Demo : demo.beautiful-scaffold.com/

Install

Add this in your Gemfile : gem 'beautiful_scaffold', '0.2.3' And run bundle install

Usage

Scaffold

rails generate beautiful_scaffold model attr:type attr:type… [–namespace=name]

type available :

  • integer

  • float

  • text

  • string

  • price

  • color

  • richtext

  • wysiwyg

# Example : products rails generate beautiful_scaffold product name:string price:price tva:float description:richtext visible:boolean && rake db:migrate

# Example : admin products rails generate beautiful_scaffold product name:string price:price tva:float description:richtext overview_description:richtext visible:boolean –namespace=admin && rake db:migrate

Locale (i18n)

rails generate beautiful_locale all

Join Table (has_and_belongs_to_many relation)

rails generate beautiful_jointable model1 model2

Install et Configure Devise (authentification) and Cancan (authorization)

rails generate beautiful_devisecancan model