Skip to content

Instantly share code, notes, and snippets.

Last active October 27, 2023 17:52
  • Star 28 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hmans/6918282 to your computer and use it in GitHub Desktop.
Application layout for Rails (4 and 5), Slim style.
doctype html
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
= yield
Copy link

mimoo commented Aug 3, 2014

cool gist thanks!

Copy link


Copy link

It's useful, thanks !

Copy link


Copy link

Nice one, thanks

Copy link

drymar commented Oct 5, 2015

Thx man!

Copy link

nice one, thanks man

Copy link

hmans commented Nov 8, 2016

Copy link

margieI commented Mar 8, 2017

thanks a lot! Very helpful

Copy link

Note Rails 6 now has csp_meta_tag

Copy link

hmans commented Apr 14, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment