First working version with devise+rails_admin
This commit is contained in:
@@ -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 %>
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
<h1>Pages#home</h1>
|
||||
<p>Find me in app/views/pages/home.html.erb</p>
|
||||
Reference in New Issue
Block a user