The theme :some_them will afftect the existed layout method in controller
Closed this issue · 1 comments
anke1460 commented
My controller has some codes like this:
layout :user
theme :some_other, only: [:show]
And i find the other action will not use the user layout when i have defined the theme.
chamnap commented
Yeah, surely it does. When you call #theme
, it doesn't two things: add before_filter
and set layout.