First working version with devise+rails_admin

This commit is contained in:
2020-08-19 07:31:31 +01:00
parent 8eadda6a48
commit 1bc17c462a
21 changed files with 230 additions and 38 deletions
+8
View File
@@ -10,6 +10,14 @@
</head>
<body>
<% unless flash.empty? %>
<script type="text/javascript">
<% flash.each do |f| %>
<% type = f[0].to_s.gsub('alert', 'error').gsub('notice', 'info') %>
toastr['<%= type %>']('<%= f[1] %>');
<% end %>
</script>
<% end %>
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
<%= yield %>
+2
View File
@@ -0,0 +1,2 @@
<h1>Pages#home</h1>
<p>Find me in app/views/pages/home.html.erb</p>