Skip to content

Commit

Permalink
Readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
gcirne committed Feb 10, 2012
1 parent dbf235a commit b8fc172
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions README
@@ -1,9 +1,34 @@
About
Rails Wip
=========

Very crude (no, really, I mean very crude!) feature toggle for rails apps.
## About

Installation
Rails Wip - as in **W**ork **I**n **P**rogress - is a very crude (no, really, I mean very crude!) [feature toggle](http://martinfowler.com/bliki/FeatureToggle.html) for rails apps.

Using
## Installing

Acknowledgements
In your Gemfile:

gem "rails_wip"

## Using

In your templates, wrap features which are still a work in progress in a `wip` block:

<%= wip do %>
Work In Progress feature
<% end %>

In development and test environments the wrapped sections will be displayed normally. But in other environments - namely production - those sections will not be displayed by default.

You can display the sections even in other environments by passing `wip=true` in a query string:

http://example.com/example?wip=true

## Advantage

The only advantage I can think of for using this over other feature toggle implementations is that it is ridiculously easy to setup. You can have feature toggles working in literally a few seconds.

## Acknowledgements

The original code for this was implemented by [azisaka](https://github.com/azisaka) for a project we worked on together. Here I extracted the code and packaged it up as a gem.

0 comments on commit b8fc172

Please sign in to comment.