Install

gem install seivan-generators

Usage

Included Generators

  • seivan_html5: generates generic layout, stylesheet, and helper files.

  • seivan_config: generates a config YAML file and loader.

  • seivan_authentication: generates user model with sign up and log in.

(TODO)

  • seivan_omniauth: generates initializer with data from config.

Rails 3

To use Nifty Generators with Rails 3 you will need to include it in your Gemfile.

gem "seivan-generators"

The generators use a colon as the separator instead of an underscore.

rails g seivan:html5 --haml (no erb so far)

rails g seivan:config
or
rails g seivan:config google 
then edit the config/google.yml so you can use the GOOGLE[:...] constant

rails g seivan:authentication 
Creates user model, users_controller and sessions_controller

rails g seivan:authentication account
Creates account model, accounts_controller and sessions_controller.

rails g nifty:authentication Account UserSession
Creates account model, accounts_controller and user_sessions_controller.