简体   繁体   中英

Ruby on Rails on IIS7 not loading assets

Hit there,
I am trying to run RoR3 on IIS7 (Win 2k8 64bit) with the Help of the HeliconZoo Module. But sadly Ruby does not load any assets (images/javascripts/stylesheets) from the app/ folder.

Everything should be installed properly and "Static Content" is enabled in IIS. I can also access those files by entering the correct URL to it but they are not being used or shown in my dynamic views.

Is it rather an issue with my app or IIS? Do i have to set some special permissions to those assetts maybe?

Thanks in advance! I appreciate any help!

Update: If i check the source from the rendered page the referring assets are linked from the root folder, so assetss are expected to be in "wwwroot/assets" instead of "wwwroot/mysite/public/assets" where they actually are being compiled to.

Obviously i cannot create a virtual folder for the assets since i want to run multiple apps on that site...

RoRHelicon Zoo使用情况页面中,有一个web.config示例,其中包含MS URL Rewrite的特殊规则,用于加载正确位置的资产。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM