From 60a65fe11a4342c1a920e2bdafe69c4a282afc7c Mon Sep 17 00:00:00 2001 From: Christopher Foy Date: Thu, 16 Jun 2011 14:50:42 -0400 Subject: [PATCH] restores _path to generated routes --- js.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js.rake b/js.rake index f1a7953..ed5064f 100644 --- a/js.rake +++ b/js.rake @@ -22,7 +22,7 @@ end def generate_method(name, path) compare = /:(.*?)(\/|$)/ path.sub!(compare, "' + params.#{$1} + '#{$2}") while path =~ compare - return "function #{name}(params){ return '#{path}'}" + return "function #{name}_path(params){ return '#{path}'}" end def generate_routes_for_rails_2