Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def new_safe(params)
- playlist = Playlist.new
- playlist.title = params[:title]
- playlist.description = params[:description]
- playlist.save
- playlist
- end
- @playlist = Playlist.new
- @playlist.input_params(params)
- def input_params(params)
- playlist.title = params[:title]
- playlist.description = params[:description]
- playlist.save
- end
Add Comment
Please, Sign In to add comment