Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Application layout for Rails (4 and 5), Slim style.
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
@mimoo
Copy link

mimoo commented Aug 3, 2014

cool gist thanks!

@mfebrianto
Copy link

mfebrianto commented Sep 11, 2014

thanks

@PredaEngine
Copy link

PredaEngine commented Oct 17, 2014

It's useful, thanks !

@thomasbaustert
Copy link

thomasbaustert commented Jan 7, 2015

awesome!

@vlad-at-work
Copy link

vlad-at-work commented Aug 12, 2015

Nice one, thanks

@drymar
Copy link

drymar commented Oct 5, 2015

Thx man!

@neversettle7
Copy link

neversettle7 commented Mar 21, 2016

nice one, thanks man

@hmans
Copy link
Author

hmans commented Nov 8, 2016

@margieI
Copy link

margieI commented Mar 8, 2017

thanks a lot! Very helpful

@damien-roche
Copy link

damien-roche commented Apr 14, 2020

Note Rails 6 now has csp_meta_tag

@hmans
Copy link
Author

hmans commented Apr 14, 2020

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