Commit 50de1caf
Changed files (3)
app
controllers
views
layouts
app/controllers/comments_controller.rb
@@ -7,7 +7,7 @@ class CommentsController < ApplicationController
def create
command_for(CommentOnCreationCommand).run(params)
- flash[:notice] = params[:comment][:body]
+ flash[:notice] = "Nice Comment!"
redirect_to :controller => 'creations', :action => 'show', :id => params[:creation_id]
end
end
app/views/layouts/_messages.html.erb
@@ -6,17 +6,10 @@
<% Array(value).uniq.each do |message| -%>
<div class="alert alert-<%= key %>">
<a class="close" data-dismiss="alert" href="#">×</a>
- <h4 class="alert-heading"><%= key.to_s.titleize -%>!</h4>
+ <!-- <h4 class="alert-heading"><%= key.to_s.titleize -%>!</h4> -->
<%= message %>
</div>
<% end -%>
- <!--
- <div class="alert alert-<%= key %>">
- <a class="close" data-dismiss="alert" href="#">×</a>
- <h4 class="alert-heading"><%= key.to_s.titleize -%>!</h4>
- <%= value %>
- </div>
- -->
<% end -%>
</div>
</div>