How to Use Rails Layouts & Display The Current Action Name

Опубликовано: 16 Май 2026
на канале: Jesus Castello
5,290
79

Ruby on Rails has this nice things called layouts. They allow you to change what your users can see on every page of your website.

Things like:

Menus
CSS / Javascript
Footer

This is important to understand if you want to build web applications.

In this video:

You'll learn the basics of layouts on Rails with a quick demonstration, then you'll discover how you can show or hide certain sections of your layout.

Based on a condition, like the current action name, or the current controller name.

If you want to keep improving your skills & get more videos like these...

Don't forget to subscribe, click the LIKE button & support my work by getting a copy of my book.

You can learn more here:

https://www.rubyguides.com/

Thank you!