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-06-07 19:34:59 +08:00
parent 786a7876f0
commit 0bab978d21

View file

@ -278,10 +278,14 @@ end
## Gotchas ## Gotchas
* Paloma will not execute if the response is `js`, `json`, `xml` or any other format except `html`. * Paloma will execute on all `render` calls, except for calls with the following formats: `js`, `json`, `xml`, and `file`.
Example: Example:
`render "something.js.erb"`
```ruby
render :json => {:x => 1} # Paloma will not execute`
render :partial => '/path/to/partial' # Paloma will execute
```
* It will cause conflicts if you have a controller and a module that has the same name. * It will cause conflicts if you have a controller and a module that has the same name.