Beautiful Scaffold

Beautiful Scaffold works with Ruby on Rails 3.1+ and 3.2+. It is Ruby 1.8 and Ruby 1.9 compatible. This is a Rails Generator that can generate a complete and beautiful scaffold for your Ruby On Rails application.
Try it now ! | Source on Github

Beautiful Scaffold / Features

Beautiful Scaffold / Install

Add these gems in your Gemfile :

	
	# For beautiful_scaffold
	gem 'beautiful_scaffold', '0.2.5'
	
Run bundle to install beautiful-scaffold
	# Install beautiful_scaffold
	bundle install
	

Beautiful Scaffold / Usage

        
	# Generate beautiful_scaffold for products (example)
	rails g beautiful_scaffold product name:string price:price tva:float description:text visible:boolean --namespace=admin && rake db:migrate
	# Generate beautiful_scaffold for families (example)
	rails g beautiful_scaffold family name:string description:text --namespace=admin
	# Oups product belongs_to family (example)
	rails g beautiful_migration AddFamilyToProducts family:references --namespace=admin
	# Update your database
	rake db:migrate
	# Change root path in routes.rb (if not already done)
	root :to => "admin/products#index"
	# Install the required gems
        bundle install
	# Start your application
        rails s
	############## More... ###############
	# Create join table (models must exist) : create foreign keys, index, habtm relation, attr_accessible *_ids attributes
	rails g beautiful_jointable model1 model2
	# Create and initialize Devise and CanCan for your model
	rails g beautiful_devisecancan model
	# Install locale for beautiful scaffold
	rails g beautiful_locale all

	

Beautiful Scaffold / Apologies

I want to apologize because :

You can fork this gem. (And you do not have to, but you can talk about beautiful scaffold and link this page).
Please fill issues on the projet Github page if you have questions.

Beautiful Scaffold / Licence

Beautiful is under MIT licence.
Copyright © 2012, Sylvain Claudel (http://blog.escarworld.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the Software.

By rivsc

Fork me on GitHub