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 2013-10-13 18:25:12 +08:00
parent 861c2d7f8f
commit 2187844ec0

View file

@ -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.
```javascript
var MyController = Paloma.controller('MyController');
var ArticlesController = Paloma.controller('Articles');
```
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.
```javascript
var ArticlesController = Paloma.controller('ArticlesController');
var ArticlesController = Paloma.controller('Articles');
ArticlesController.prototype.new = function(){
// Handle new articles