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
861c2d7f8f
commit
2187844ec0
1 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ Controllers are just classes that handle requests made by Rails Controllers. Eac
|
||||||
A Controller constructor is created or accessed, if it already exists, using `Paloma.controller()` method.
|
A Controller constructor is created or accessed, if it already exists, using `Paloma.controller()` method.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var MyController = Paloma.controller('MyController');
|
var ArticlesController = Paloma.controller('Articles');
|
||||||
```
|
```
|
||||||
|
|
||||||
It will return the constructor function of your controller.
|
It will return the constructor function of your controller.
|
||||||
|
@ -84,7 +84,7 @@ It will return the constructor function of your controller.
|
||||||
Every time a request to Paloma is made (A Rails Controller action is executed), an instance of a Paloma controller is created and a method responsible for the request will be invoked.
|
Every time a request to Paloma is made (A Rails Controller action is executed), an instance of a Paloma controller is created and a method responsible for the request will be invoked.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var ArticlesController = Paloma.controller('ArticlesController');
|
var ArticlesController = Paloma.controller('Articles');
|
||||||
|
|
||||||
ArticlesController.prototype.new = function(){
|
ArticlesController.prototype.new = function(){
|
||||||
// Handle new articles
|
// Handle new articles
|
||||||
|
|
Loading…
Reference in a new issue