【发布时间】:2017-11-29 01:30:54
【问题描述】:
我的应用程序文件夹很少,但只有一个控制器支持它
folder_one & folder_two,这些文件夹应该基于域呈现
如果域 one 应该被渲染为 folder_one
怎么做?
主要问题是如何根据请求渲染文件夹。
更新:
my app structure
accounts
first_domain
index.html.erb
second_domain
index.html.erb
如果请求来自first_domain.com,则应呈现'accounts/index/first_domain'
如果请求来自'second_domain.com' => 'accounts/index/second_domain'
【问题讨论】:
-
你能解释一下吗??
-
提供更多细节。
-
@TusharPal 更新
-
@MayurShah 更新
标签: ruby-on-rails ruby