diff --git a/app/views/layouts/_flashmessages.html.haml b/app/views/layouts/_flashmessages.html.haml new file mode 100644 index 0000000..092dc47 --- /dev/null +++ b/app/views/layouts/_flashmessages.html.haml @@ -0,0 +1,3 @@ +- flash.each do |key, value| + %div{class: "alert alert-#{key}"} + = value diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index ce8eafb..cf98df0 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -8,7 +8,13 @@
-<%= yield %> +