阅读背景:

(Rails)如何从非宁静视图中引用资源......?

来源:互联网 

How do you ensure that your javascript includes get included properly for all files everywhere using a particular layout? Basically I have some non-restful actions that I've added. I haven't added any ROUTES for them, however, using normal text rendering works fine. It's when I start requiring different "swf" and "js" files (files which are properly placed in PUBLIC) that things get hairy. I start receiving "406 Not Acceptable" errors telling me that it's looking for the files in a subdirectory of the current controller.How do you ensure that your javascript includes




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

分享到: