artists: show success/error message when updating artists.

This commit is contained in:
evazion
2017-07-29 01:38:21 -05:00
parent 6121b8cb25
commit 10614d2152
2 changed files with 9 additions and 0 deletions

View File

@@ -62,6 +62,7 @@ class ArtistsController < ApplicationController
def update
@artist.update(params[:artist], :as => CurrentUser.role)
flash[:notice] = @artist.valid? ? "Artist updated" : @artist.errors.full_messages.join("; ")
respond_with(@artist)
end