Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changelog, version 0.0.9

  • Loading branch information...
commit 6bcf7d589f3ff2b20a29e24a55db27ede61df2a2 1 parent c084678
Anatoliy Chakkaev authored February 26, 2013
51  CHANGELOG.md
Source Rendered
... ...
@@ -1,3 +1,54 @@
  1
+## 0.0.9
  2
+
  3
+### params.state
  4
+
  5
+Introducing new param `state`, which allows to specify whether route has push
  6
+state when used on client-side.
  7
+
  8
+### Amends in path handling and url helpers
  9
+
  10
+- optional params (followed by question mark) handled correctly
  11
+- named params could be filled using object passed to url helpers
  12
+- url helpers could be in camelCase (map.camelCaseHelperNames)
  13
+
  14
+### Simplified collection-wide methods for resource, optional controller#action param
  15
+
  16
+Instead of
  17
+
  18
+```javascript
  19
+map.resources('posts', function (post) {
  20
+    post.del('destroyAll', 'posts#destroyAll', {collection: true});
  21
+    post.put('sort', 'posts#sort', {collection: true});
  22
+    post.get('rating', 'posts#getRating');
  23
+});
  24
+```
  25
+
  26
+nicer to do:
  27
+
  28
+```javascript
  29
+map.resources('posts', function (post) {
  30
+    post.collection(function (posts) {
  31
+        post.del('destroyAll');
  32
+        post.put('sort');
  33
+    });
  34
+    post.get('rating', '#getRating');
  35
+});
  36
+```
  37
+
  38
+### Chainable methods
  39
+
  40
+Every method (post, get, put, delete, all) now returns `map` in order to allow
  41
+chain calls.
  42
+
  43
+```javascript
  44
+map.get('path', 'ctl#act').post('path/:param', 'ctl#another');
  45
+```
  46
+
  47
+### RoutesCollection class
  48
+
  49
+Helpers collection `pathTo` now instanceof RoutesCollection class, which looks
  50
+better in stack traces.
  51
+
1 52
 ## 0.0.8
2 53
 
3 54
 ### Added sub-apps support
2  package.json
@@ -3,7 +3,7 @@
3 3
   "name": "railway-routes",
4 4
   "description": "Resourceful routing for ExpressJS, ruby-on-rails 2 style",
5 5
   "tags": "express, routing, ror, rails, railway",
6  
-  "version": "0.0.8-8",
  6
+  "version": "0.0.9",
7 7
   "homepage": "http://railwajs.com/routing.html",
8 8
   "repository": {
9 9
     "type": "git",

0 notes on commit 6bcf7d5

Please sign in to comment.
Something went wrong with that request. Please try again.