1
0
Fork 0
mirror of https://github.com/kbparagua/paloma synced 2023-03-27 23:21:17 -04:00

Update README.md

This commit is contained in:
Karl Bryan Paragua 2014-09-25 23:35:00 +08:00
parent dbd4b0d155
commit 4766fb0fbf

View file

@ -292,6 +292,20 @@ $(document).on('page:restore', function(){
});
```
### Turbolinks without `jquery.turbolinks` gem
You need to manually run Paloma every page load if you are not using `jquery.turbolinks` gem.
In your `application.js`
```js
$(document).on('page:load', function(){
Paloma.executeHook();
Paloma.engine.start();
});
```
## Gotchas
* Paloma will execute on all `render` calls, except for calls with the following formats: `js`, `json`, `xml`, and `file`.