<% if @assets and @assets.any? %>
  $('table.assets tbody').prepend("<%= j render(@assets) %>");
<% end %>
<% flash.each do |name, msg| %>
  new Flash('<%= msg %>', '<%= name %>')
<% end -%>
<% if @assets and @assets.any? %>
  $('table.assets tbody').prepend("<%= j render(@assets) %>");
  $('tr.no-assets').remove();
<% end %>
<% flash.each do |name, msg| %>
  new Flash('<%= msg %>', '<%= name %>')
<% end -%>
Remove message row for empty assets on new asset create
Remove message row for empty assets on new asset create
