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-05-29 22:52:19 +08:00
parent babd21b327
commit 216511c5f6

View file

@ -280,8 +280,19 @@ end
* Paloma will not execute if the response is `js`, `json`, `xml` or any other format except `html`.
For example: `render "something.js.erb"`
Example:
`render "something.js.erb"`
* It will cause conflicts if you have a controller and a module that has the same name.
Example:
```js
var AdminController = Paloma.controller('Admin');
// This will override the AdminController and replace it
// with a module named 'Admin'.
var UsersController = Paloma.controller('Admin/Users');
```
## Where to put code?