Created
December 2, 2022 03:22
-
-
Save dpaluy/67ecac58c374ba1e8bb89d56b31bd67d to your computer and use it in GitHub Desktop.
Render partial within a Tab in Rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%= turbo_frame_tag "tabs", target: "tab-content" do %> | |
| <%= link_to 'Tab 1', tab_1_path %> | |
| <%= link_to 'Tab 2', tab_2_path %> | |
| <% end -%> | |
| <%= turbo_frame_tag "tab-content", src: tab_1_path, loading: "eager" %> | |
| # Read more: https://turbo.hotwired.dev/handbook/frames |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment