% if @error %>
<%== @error %>
<% flash.keys.select {|k| [:success, :error, :errors].include?(k)}.each do |key| %> <%== flash[key] %> <% end %>