Not a rails expert, but found the solution for anyone else with the issue. Rails 4 now uses strong params with protecting attributes now done in the controller
ruby
...
defcreate
respond_with Entry.create(entry_params)
enddefupdate
respond_with Entry.update(params[:id], entry_params)
end
...
defentry_params
params.require(:entry).permit(:name, :winner)
end
...
Not a rails expert, but found the solution for anyone else with the issue. Rails 4 now uses strong params with protecting attributes now done in the controller
Great vid mate, however using Rails 4 I'm getting the following error on my create and update methods:
ActiveModel::ForbiddenAttributesError