dataLAB Generators

Rails generator scripts designed to be used as a starting point with default dataLAB projects. Derived from Ryan Bates' Nifty Generator scripts.

Setup

Add the gem to your Gemfile.

gem "datalab-generators", :group => :development

Then you can run any of the included generators.

rails g datalab:scaffold Recipe name:string index new

Included Generators

  • datalab:layout: generates generic layout, stylesheet, and helper files.
  • datalab:scaffold: generates a controller and optional model/migration.
  • datalab:administrators: generates an administrators YAML file and loader.

To view the README for each generator, run it with the --help option.

rails g datalab:layout --help