我有一个页面my_testimonials
在推荐控制器的操作中显示我的推荐。
此操作的正确布局是,layouts/frame
但我必须更改某些内容,因为现在它正在渲染layouts/application
这是控制器中指定的布局:
layout "layouts/frame", only: [:my_testimonials]
layout "layouts/shares", only: [:new]
这是控制台中的输出:
Started GET "/my_testimonials/c4ca4238a0b923820dcc509a6f75849b" for 105.228.65.202 at 2013-09-27 07:40:49 +0000
2013-09-27T07:40:49.470211+00:00 app[web.2]: Processing by TestimonialsController#my_testimonials as HTML
2013-09-27T07:40:49.686047+00:00 app[web.2]: Rendered testimonials/_testimonial.html.erb (2.6ms)
2013-09-27T07:40:49.686200+00:00 app[web.2]: Rendered testimonials/my_testimonials.html.erb within layouts/application (79.2ms)
推荐书正在显示,但布局不正确。正如我所说,它昨天还在工作,所以我一定改变了一些小细节或某些东西的顺序。