You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JsRoutes ties to be as close as possible to rails behaviour in all aspects of routing API.
195
-
Please make and issue in case of any incomtibilities found outside of described below.
194
+
JsRoutes tries to replicate the Rails routing API as closely as possible. If you find any incompatibilities (outside of what is described below), please [open an issue](https://github.com/railsware/js-routes/issues/new).
196
195
197
196
### Object and Hash distinction issue
198
197
199
-
Sometimes the destinction between JS Hash and Object can not be found by js-routes.
198
+
Sometimes the destinction between JS Hash and Object can not be found by JsRoutes.
200
199
In this case you would need to pass a special key to help:
201
200
202
201
```js
203
-
Routes.company_project_path({company_id:1, id:2}) // => Not Enough parameters
202
+
Routes.company_project_path({company_id:1, id:2}) // => Not enough parameters
js-routes itself do not have security holes. It makes URLs
209
+
JsRoutes itself do not have security holes. It makes URLs
211
210
without access protection more reachable by potential attacker.
212
211
In order to prevent this use `:exclude` option for sensitive urls like `/admin_/`
213
212
@@ -219,9 +218,9 @@ When using Spork and `Spork.trap_method(Rails::Application::RoutesReloader, :rel
219
218
Spork.trap_method(JsRoutes, :generate!)
220
219
```
221
220
222
-
## JS-Routes and heroku
221
+
## JsRoutes and Heroku
223
222
224
-
Heroku environment has a specific problems with setup. It is impossible to use asset pipeline in this environment. You should use "Very Advanced Setup" schema in this case.
223
+
When using this setup on Heroku, it is impossible to use the asset pipeline. You should use the "Very Advanced Setup" schema in this case.
225
224
226
225
For example create routes.js.erb in assets folder with needed content:
227
226
@@ -242,10 +241,10 @@ Advantages of this one are:
242
241
* Support Rails `#to_param` convention for seo optimized paths
243
242
* Well tested
244
243
245
-
#### Thanks to [Contributors](https://github.com/railsware/js-routes/contributors)
244
+
#### Thanks to [contributors](https://github.com/railsware/js-routes/contributors)
0 commit comments