turbolinks_transitions 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +20 -1
- data/lib/turbolinks_transitions.rb +0 -2
- metadata +1 -1
data/README.md
CHANGED
@@ -18,7 +18,26 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
Just add the id `content` to your 'master div', for example, in your
|
22
|
+
`application.html.erb`:
|
23
|
+
|
24
|
+
```erb
|
25
|
+
<div class="container" id="content">
|
26
|
+
<%= yield %>
|
27
|
+
</div>
|
28
|
+
```
|
29
|
+
|
30
|
+
And import the JS:
|
31
|
+
|
32
|
+
```coffeescript
|
33
|
+
#= require jquery
|
34
|
+
#= require jquery_ujs
|
35
|
+
#= require turbolinks
|
36
|
+
#= require turbolinks_transitions
|
37
|
+
#= require_tree .
|
38
|
+
```
|
39
|
+
|
40
|
+
Thats it, you're now ready to roll.
|
22
41
|
|
23
42
|
## Contributing
|
24
43
|
|