Multiple public folders, single rails installation

前端 未结 2 2009
滥情空心
滥情空心 2020-12-19 07:30

I have a rails application I would like to use for multiple sites, each with different designs.

I would like to change the rails installation /public directory to so

2条回答
  •  有刺的猬
    2020-12-19 08:06

    Duh. Just add 2 more rules for stylesheets and javascripts (I guess they get wiped when you change the parent path)

    paths.public.stylesheets = "site_one/stylesheets"
    paths.public.javascripts = "site_one/javascripts"
    

提交回复
热议问题