chamnap/themes_on_rails

The theme :some_them will afftect the existed layout method in controller

Closed this issue · 1 comments

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.

Yeah, surely it does. When you call #theme, it doesn't two things: add before_filter and set layout.