In my console:
>> include ActionController::UrlWriter
=> Object
>> root_path
=> "/"
In the javascript console:
>>> Routing.root_path()
""
Changing generate.js.erb to:
while (path[path.length - 1] == "/" && path != "/") {
fixes it. Does that look right?
In my console:
In the javascript console:
Changing generate.js.erb to:
fixes it. Does that look right?