Skip to content

Instantly share code, notes, and snippets.

@carlosramireziii
carlosramireziii / admin.html.erb
Last active May 19, 2021
"Best Practices For Building A Rails Admin Interface From Scratch" sample setup
View admin.html.erb
<% # app/views/layouts/admin.html.erb %>
<!DOCTYPE html>
<html>
<head>
<title>Admin Interface</title>
<%= csrf_meta_tags %>
<% # Optionally use admin-specific assets here instead of the normal application assets %>
<%= stylesheet_link_tag 'admin', media: 'all', 'data-turbolinks-track': 'reload' %>