RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: chrisjeon
Site: http://www.chrisjeon.me
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
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