Sign in through GitHub

RailsCasts Pro episodes are now free!

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