Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Chris Jeon's Profile

GitHub User: chrisjeon

Site: http://www.chrisjeon.me

Comments by Chris Jeon

Avatar

I did

def update
respond_with Entry.find(params[:id]).update_attributes(entry_params)
end

private

def entry_params
params.require(:entry).permit(:name, :winner)
end