rwz / nestive

A Better Nested Inheritable Layouts Plugin for Rails
MIT License
236 stars 31 forks source link

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

Open jonhue opened 7 years ago

jonhue commented 7 years ago

This is my code:

-# Application layout extending base layout
= extends :base do
    = area :content
jonhue commented 7 years ago

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

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