test/rails_app/app/views/layouts/application.html.erb in devise_invitable-1.7.5 vs test/rails_app/app/views/layouts/application.html.erb in devise_invitable-2.0.0
- old
+ new
@@ -5,12 +5,11 @@
<%= stylesheet_link_tag :all %>
<%= javascript_include_tag :defaults %>
<%= csrf_meta_tag %>
</head>
<body>
+ <%= content_tag :p, flash[:notice], id: 'notice' unless flash[:notice].blank? %>
+ <%= content_tag :p, flash[:alert], id: 'alert' unless flash[:alert].blank? %>
-<%= content_tag :p, flash[:notice], :id => 'notice' unless flash[:notice].blank? %>
-<%= content_tag :p, flash[:alert], :id => 'alert' unless flash[:alert].blank? %>
-<%= yield %>
-
+ <%= yield %>
</body>
</html>