Last active
October 27, 2023 17:52
-
-
Save hmans/6918282 to your computer and use it in GitHub Desktop.
Application layout for Rails (4 and 5), Slim style.
This file contains 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
doctype html | |
html | |
head | |
title My App | |
meta name="viewport" content="width=device-width, initial-scale=1.0" | |
= stylesheet_link_tag "application", media: 'all', 'data-turbolinks-track' => true | |
= javascript_include_tag "application", 'data-turbolinks-track' => true | |
= csrf_meta_tags | |
body | |
= yield |
thanks
It's useful, thanks !
awesome!
Nice one, thanks
Thx man!
nice one, thanks man
thanks a lot! Very helpful
Note Rails 6 now has csp_meta_tag
Rails 6 version here: https://gist.github.com/hmans/1aa5acac56c7ee995900fe65040adeb3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cool gist thanks!