Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我contact_us在 Rails 应用程序中使用 gem 时,它使用应用程序的布局。但我想为联系我们页面使用另一种布局。我怎样才能做到这一点?
contact_us
这是您可以在相应的控制器中执行的操作,您可以从特定的操作中指定备用布局模板。
# controller that calls the page def action render :layout => 'other' end