diff --git a/app/controllers/playlists_controller.rb b/app/controllers/playlists_controller.rb index 411329c..50d8fd2 100644 --- a/app/controllers/playlists_controller.rb +++ b/app/controllers/playlists_controller.rb @@ -66,7 +66,7 @@ def update @playlist = current_user.playlists.friendly.find(params[:id]) if !params[:nonpersist] && @playlist.update(playlist_params) - flash[:now] = "successfully created" + flash[:now] = "successfully updated" end if params[:nonpersist] diff --git a/app/views/playlists/show.html.erb b/app/views/playlists/show.html.erb index 71a5841..3f67738 100644 --- a/app/views/playlists/show.html.erb +++ b/app/views/playlists/show.html.erb @@ -163,7 +163,7 @@ <%= render "sharer/share_button", resource: @playlist %> - <%= render "likes/like_button", resource: @playlist, button_class: liked?(@track) ? "button-active" : "button" %> + <%= render "likes/like_button", resource: @playlist, button_class: liked?(@playlist) ? "button-active" : "button" %> <% if user_signed_in? && @playlist.user_id == current_user.id %> @@ -279,7 +279,7 @@ --> -