Mile Marker

Visual Milestone Expectations

MileMarker adds a helper for marking page elements with the milestone they are slated to be developed, and makes them unable to be interacted with.


Usage

Once the plugin has been installed, in your views you can now do:


<div class="person" <%= mile 6 %>>
  <div class="name">Your Name<div>
</div>

When viewed in development mode, the person div would be overlaid with a translucent gray box with the words “Milestone 6” in it, as shown below.

If you happen to not call your milestones, “milestones”, or for any other reason want the label to be something different, just supply a string instead:


<div class="person" <%= mile "Next Week" %>>
  <div class="name">Your Name<div>
</div>

And that will still result in the marker being labeled with “Next Week” instead.

Installation

To install, just sit in your RAILS_ROOT and run:


script/plugin install git://github.com/thoughtbot/mile_marker.git

Copyright and License

All code is © 2008, thoughtbot, inc. and is released under the MIT License.

Feel free to email us with any questions or feedback.