mirror of
https://github.com/kbparagua/paloma
synced 2023-03-27 23:21:17 -04:00
Update README.md
This commit is contained in:
parent
786a7876f0
commit
0bab978d21
1 changed files with 6 additions and 2 deletions
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue