breadcrumble 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +5 -5
- data/lib/breadcrumble/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -17,20 +17,20 @@ Or install it yourself as:
|
|
17
17
|
$ gem install breadcrumble
|
18
18
|
|
19
19
|
## Usage
|
20
|
-
In your controller, call `
|
20
|
+
In your controller, call `add_crumb` to push a new crumb on the breadcrumb stack.
|
21
21
|
|
22
22
|
class SampleController
|
23
23
|
|
24
|
-
|
25
|
-
|
24
|
+
add_crumb "home", home_url
|
25
|
+
add_crumb "sample", sample_url
|
26
26
|
|
27
27
|
def index
|
28
|
-
|
28
|
+
add_crumb "index", index_url
|
29
29
|
end
|
30
30
|
|
31
31
|
end
|
32
32
|
|
33
|
-
In your view, you can render the breadcrumb
|
33
|
+
In your view, you can render the breadcrumb navigation with the `render_breadcrumbs` helper.
|
34
34
|
|
35
35
|
<body>
|
36
36
|
<%= render_breadcrumbs %>
|
data/lib/breadcrumble/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breadcrumble
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|