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 `extends' for #<#<Class:0xb1d4748>:0xaa049c0> #30

Open
jonhue opened this issue Apr 24, 2017 · 2 comments
Open

undefined method `extends' for #<#<Class:0xb1d4748>:0xaa049c0> #30

jonhue opened this issue Apr 24, 2017 · 2 comments

Comments

@jonhue
Copy link

jonhue commented Apr 24, 2017

This is my code:

-# Application layout extending base layout
= extends :base do
    = area :content
@jonhue
Copy link
Author

jonhue commented Apr 25, 2017

Hm.. noticed that it also does not recognize the area helper. Do I need to run a generator after installing the gem to make it work?

@jonhue
Copy link
Author

jonhue commented Apr 25, 2017

It happens because the helper methods do not get loaded with the application. I've fixed it temporarily by manually including the helper methods in my own helper. I am using rails 5.1

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

1 participant