RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Easier nested layouts in Rails 7

I’ve been using a simple, 4-line helper method to implement nested layouts in Rails since I originally blogged about it in the Rails 4 days. The technique still works great after all these years! Today I updated my post for Rails 7. The code has now been tested from Rails 6.0 all the way to Rails edge. https://mattbrictson.com/blog/easier-nested-layouts-in-rails

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in