master
<% if @error.present? %> alert("<%= @error %>"); <% else %> window.location.reload(); <% end %>