Skip to content

Instantly share code, notes, and snippets.

@hmans
Last active June 30, 2025 11:47
Show Gist options
  • Select an option

  • Save hmans/6918282 to your computer and use it in GitHub Desktop.

Select an option

Save hmans/6918282 to your computer and use it in GitHub Desktop.
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

mimoo commented Aug 3, 2014

Copy link
Copy Markdown

cool gist thanks!

@mfebrianto

Copy link
Copy Markdown

thanks

@PredaEngine

Copy link
Copy Markdown

It's useful, thanks !

@thomasbaustert

Copy link
Copy Markdown

awesome!

@vlad-at-work

Copy link
Copy Markdown

Nice one, thanks

@drymar

drymar commented Oct 5, 2015

Copy link
Copy Markdown

Thx man!

@neversettle7

Copy link
Copy Markdown

nice one, thanks man

@hmans

hmans commented Nov 8, 2016

Copy link
Copy Markdown
Author

@margieI

margieI commented Mar 8, 2017

Copy link
Copy Markdown

thanks a lot! Very helpful

@damienrch

Copy link
Copy Markdown

Note Rails 6 now has csp_meta_tag

@hmans

hmans commented Apr 14, 2020

Copy link
Copy Markdown
Author

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