Added '_path' to routes so you say Routes.bookings_path() instead of Routes.booking()

master
Adam Davies 2009-06-10 14:53:58 +09:30
parent ab7f7f1b53
commit 3c50f3c5ce
1 changed files with 7 additions and 7 deletions

View File

@ -205,7 +205,7 @@
this.named.push(route);
this.named[route.name] = route;
this[route.name] = (function(route){
this[route.name + '_path'] = (function(route){
var fn = function(){
var params = {},
options = {},