chamnap / themes_on_rails

Adds multi themes support to your Rails 3/4/5 application
https://rubygems.org/gems/themes_on_rails
MIT License
217 stars 86 forks source link

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

Closed anke1460 closed 9 years ago

anke1460 commented 9 years ago

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 9 years ago

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