Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `theme' in Controller Class. Rails 5.0.1 #37

Open
dmitryck opened this issue Mar 1, 2017 · 1 comment
Open

undefined method `theme' in Controller Class. Rails 5.0.1 #37

dmitryck opened this issue Mar 1, 2017 · 1 comment

Comments

@dmitryck
Copy link

dmitryck commented Mar 1, 2017

Hi.
gem 'themes_on_rails'
is added into Gemfile and installed

Themes are generated:
rails g themes_on_rails:theme work

But, after calling method theme inside a controller:

class Request::CatalogController < ApplicationController

	theme 'work'

	def home
		@items = Item.get_items
	end

end

i get an error:
undefined method 'theme' for Request::CatalogController:Class (NoMethodError)

Rails version 5.0.1

Thank you!

@michael-tudor
Copy link

I have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants