rwz / nestive

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

Absoulte Path deprecation warning in Rails 6 #33

Open LokeshKanumoori opened 3 years ago

LokeshKanumoori commented 3 years ago

I was using 5.x version of rails. recently, updated the rails version 6 now i'm getting below warning.

DEPRECATION WARNING: render file: should be given the absolute path to a file (called from _app_views_layouts_frame_html_haml___3291663533381257803_70120141752300 at

Please can you help me with this issue??

LokeshKanumoori commented 3 years ago

replace render file: layout with render template: layout to fix this issue in rails 6.x

rwz commented 3 years ago

I haven't really touched rails since 4.0 I think so I'm not very equipped to debug the stuff. If you have found the issue, mind sending a pull request?

jherdman commented 3 years ago

@rwz it may be prudent to edit the README and seek help maintaining this gem, or explicitly mark it as deprecated. Many thanks for the code! (Sadly I cannot help — we're moving away from this gem at this time).