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

This commit is contained in:
Adam Davies 2009-06-10 14:53:58 +09:30
parent ab7f7f1b53
commit 3c50f3c5ce

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 = {},