<% if @error %> alert("<%= escape_javascript(@error.to_s) %>"); <% end %>