Refactor playlists views
This commit is contained in:
parent
562b57a900
commit
7a28b01287
@ -12,6 +12,7 @@ module API
|
|||||||
def create
|
def create
|
||||||
@playlist = current_user.playlists.build playlist_params
|
@playlist = current_user.playlists.build playlist_params
|
||||||
@playlist.save
|
@playlist.save
|
||||||
|
render :show
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
object @playlist
|
|
||||||
|
|
||||||
attribute :id
|
|
||||||
attribute :name
|
|
Loading…
x
Reference in New Issue
Block a user