This repository has been archived by the owner on Nov 11, 2017. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
39 lines (23 loc) · 1.45 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
= Mile Marker Plugin
Author:: Chad Pytel (mailto:cpytel@thoughtbot.com)
Copyright:: Copyright(c) 2007 thoughtbot, inc.
License:: Distributes under the same terms as Ruby
A 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.
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 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>
</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 environment.rb
Thoughtbot::MileMarker.environments = %w(development staging production)
== Requirements
The overlay functionality requires javascript, and uses the prototype library. So, any page that is using this functionality must also include prototype.
== Todo
* Rake task to find and print out (with line numbers) all of the milestone markers