Use factory_girl_rails for factories
This commit is contained in:
@@ -8,7 +8,7 @@ class PlaylistsController < ApplicationController
|
||||
end
|
||||
|
||||
def create
|
||||
@playlist = Playlist.new params[:playlist]
|
||||
@playlist = Playlist.new(:name => params[:playlist][:name])
|
||||
if @playlist.save
|
||||
redirect_to :action => 'index'
|
||||
else
|
||||
|
Reference in New Issue
Block a user