开发者

Overriding public-directory in Rails 3?

开发者 https://www.devze.com 2023-01-10 15:25 出处:网络
I\'m building a template system for a CMS in Rails 3, 开发者_运维百科with each template placed in {application_root}/templates/{template_name}/.

I'm building a template system for a CMS in Rails 3, 开发者_运维百科with each template placed in {application_root}/templates/{template_name}/.

For each template I would like to have a public-directory that overrides the standard one. How can it be done?


You need define the paths.public in config/application.rb

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号