阅读背景:

在Rails应用程序中使用AJAX编写JS脚本的最佳实践?如何在脚本中包含URL?

来源:互联网 

I'd like to use a little bit of simple AJAX in my Rails application. The main problem I have is that inside a script I need to specify the URL where the request will go, which in most cases is a path to some Rails controller action. Anywhere else I'm advised not to write paths explicitly by hand (i.e. not do ugly stuff like I'd like to use a little bit of simple AJAX in




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: