ruby on rails - Changed resources path breaks ajax -


when change path of resource in routes.rb file, ajax links stop working. instead of loading .js view, instead load .html view , nothing it. changing route fixes it.

is bug? there workaround? can specify format: :js in link, kind of defeats purpose of unobtrusive javascript, , link js source if js disabled.

rails 4.0.2, ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin12.0].


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -