From 033b15852e21f1465be9c72008387b9506094cef Mon Sep 17 00:00:00 2001 From: Michael Hartl Date: Fri, 26 Aug 2016 18:39:13 -0700 Subject: [PATCH] Add id --- app/assets/javascripts/application.js | 2 ++ app/views/messages/_messages.html.erb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index b12018d09..2e0bc8041 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -14,3 +14,5 @@ //= require jquery_ujs //= require turbolinks //= require_tree . + +alert('foo'); \ No newline at end of file diff --git a/app/views/messages/_messages.html.erb b/app/views/messages/_messages.html.erb index f88b255ae..027cf576a 100644 --- a/app/views/messages/_messages.html.erb +++ b/app/views/messages/_messages.html.erb @@ -1,5 +1,5 @@
-
+
<% if @messages.any? %> <%= render @messages %> <% end %>