Skip to content

A rails3 engine encapsulating our app playground approach to design.

License

Notifications You must be signed in to change notification settings

plus2/plus2-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PLUS2 Playground

A Rails 3 engine encapsulating our app playground approach to design.

In a new project, we set up an independent playground branch. Our designers can play around with and iterate designs within the app framework (i.e. using haml, sass, compass rails helpers etc.) without conflicting with the business code (database backed models etc.).

When its ready, the developers cherry pick or just copy haml and other design elements from the playground branch.

Installation

gem install plus2-playground
# or Gemfile
gem 'plus2-playground'

In RAILS_ROOT/config/routes.rb:

YourNewApp::Application.routes.draw do
  add_playground_routes
end

Start your app.

Usage

Put your playground mockups into RAILS_ROOT/app/views/playground

The directory you put your templates in (under views/playground) chooses the layout as follows:

playground/list_of_hammers.haml             - application layout
playground/application/list_of_hammers.haml - application layout
playground/admin/list_of_nails.haml         - admin layout

Now, navigate to your app in a browser.

About

A rails3 engine encapsulating our app playground approach to design.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages