<% if @all_page.errors %> <% @all_page.errors.full_messages.each do |msg| %> $.notify("Błąd zapisu: \n<%= raw msg %>", "error"); <% end %> <% end %>