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
babd21b327
commit
216511c5f6
1 changed files with 12 additions and 1 deletions
13
README.md
13
README.md
|
@ -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?
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue