react-router-rails 0.0.1 → 0.11.6
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.
- checksums.yaml +4 -4
- data/README.md +22 -1
- data/lib/react/router/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d72ad34f48bc662329a91dfae33007998a9accfc
|
4
|
+
data.tar.gz: 9acca7f0f94fa759292a784c56aab7d9ce65ded8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d5beb7f413194b17873d8ff435392f9c135320f844834c2037685752a088688903f070d330e2b289e2045c163a2308c56bfebeebe55dbb46d80e58029ff93f8
|
7
|
+
data.tar.gz: 2e457caa3607b621f351c1af0bb3e49c700e59c1ce338dc1075a34051ca87db53ddd785d95289ad6d74ab0814c1c81abcff79d53180a786f7ccf7331c873aa17
|
data/README.md
CHANGED
@@ -14,21 +14,42 @@
|
|
14
14
|
|
15
15
|
```bash
|
16
16
|
bundle install
|
17
|
+
```
|
17
18
|
|
18
19
|
2. Require the modified React-Router javascript file in `app/assets/javascripts/application.js`:
|
19
20
|
|
20
21
|
```js
|
21
22
|
//= require react_router
|
23
|
+
// OR
|
24
|
+
//= require react_router.min
|
22
25
|
```
|
23
26
|
|
24
27
|
Or in `app/assets/javascripts/application.js.coffee`:
|
25
28
|
|
26
29
|
```coffeescript
|
27
30
|
#= require react_router
|
31
|
+
#OR
|
32
|
+
#= require react_router.min
|
33
|
+
```
|
34
|
+
|
35
|
+
3. Using React Router in your javascript:
|
36
|
+
|
37
|
+
```js
|
38
|
+
ReactRouter.run(routes, function (Handler) {
|
39
|
+
React.render(<Handler/>, document.body);
|
40
|
+
});
|
41
|
+
```
|
42
|
+
|
43
|
+
Or in coffeescript:
|
44
|
+
|
45
|
+
```coffeescript
|
46
|
+
ReactRouter.run(routes, (Handler) ->
|
47
|
+
React.render <Handler/>, document.body
|
48
|
+
)
|
28
49
|
```
|
29
50
|
|
30
51
|
## Acknowledgements
|
31
52
|
|
32
|
-
[React Router](https://github.com/rackt/react-router/) licensed under the [MIT license](https://github.com/rackt/react-router/blob/master/LICENSE)
|
53
|
+
[React Router](https://github.com/rackt/react-router/) by Ryan Florence, Michael Jackson licensed under the [MIT license](https://github.com/rackt/react-router/blob/master/LICENSE)
|
33
54
|
|
34
55
|
Copyright [Mario Peixoto](https://github.com/mariopeixoto), released under the [MIT license](https://github.com/mariopeixoto/react-router-rails/LICENSE).
|