Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: 7a02f1a71d
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (37 sloc) 2.423 kB


Thoughtbot is no longer supporting this project, it hasn't be tested or used since at least Rails 2.x.

Our current process is to just use Flutie ( and add “wip” elements to HTMLe elements, like so:

<div class="wip">Something that isn't done yet!</div>

MileMarker Plugin


Chad Pytel (


Copyright© 2007 thoughtbot, inc.


Distributes under the same terms as Ruby


A Ruby on Rails plugin for visually setting expectations throughout application development.

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


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

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

When viewed in development mode, the person div would be overlaid with a grey box with the words “Milestone 6” in it.

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>

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

By default, the milestone markers will be only appear in the Rails development environment. To customize this, add the following to the config file of the other environments you want the markers to appear:


If you prefer not to have it on in development, add the following to development.rb


Or, if you prefer, add something like the following to environment.rb:

Thoughtbot::MileMarker.environments = %w(development staging production)

You can also change some of the styling options (as of right now, just the z-index and background color) by modifying the options hash:


:z_index => 100, :background_color => “purple”



The overlay functionality requires javascript, and uses the prototype library. So, any page that is using this functionality must also include prototype.


  • Rake task to find and print out (with line numbers) all of the milestone markers

Jump to Line
Something went wrong with that request. Please try again.