Sha256: 6e857a40a23d8f5d4801d0e18cbc5c1f8296c223ec435db9a9cd1d3a7ec44b3d
Contents?: true
Size: 617 Bytes
Versions: 46
Compression:
Stored size: 617 Bytes
Contents
<% if @profile.valid? %> <% flash[:notice] = t('profile.update.success') %> document.location.href="<%= polymorphic_path([ current_subject, :profile ]) %>"; <% else %> if ($("#profile_notice").length == 0){ $("#profile_form").prepend('<div id="profile_notice" class="notice"></div>'); } $("#profile_notice").html("<h2><%= pluralize(@profile.errors.count, "error") %> <%= t('profile.update.error')%></h2>" +"<ul><% @profile.errors.full_messages.each do |msg| %><li><%= msg %></li><% end %></ul>"); $("#profile_notice").removeClass('success'); $("#profile_notice").addClass('error'); <% end %>
Version data entries
46 entries across 46 versions & 2 rubygems