Project

scaffy

0.0
No commit activity in last 3 years
No release in over 3 years
Scaffy generates usable scaffolding for a model with tests, layout, namespacing and haml.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Scaffy Generator

An opinionated cut down scaffold generator. This uses haml for templates and includes tests in shoulda with factory_girl as the object factory. Nothing fancy, nothing special. Just a really fast way to use scaffolding in an extendable manner.

Install

Rails 3 (in your Gemfile)

  gem ‘scaffy’
  bundle install
  

Usage

Simple scaffold

rails g scaffy post title:string content:text

Scaffold with added layout and flash messages.

rails g scaffy post title:string content:text --layout=true

Scaffold with namespace

rails g car make:string model:string year:integer --namespace=admin

Then to install the dependent gems:

  bundle install

Dependencies

Credits

flutie