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