I am sure it is something small I am not seeing, but I am getting this wrong number of arguments (1 for 2) when I try to update information via a form, in rails 4.
here is my controller action:
def update
@lion = Lion.find(params[:id])
@lion = Lion.update(lion_params)
redirect_to lion(@lion)
end
and here are the lion_params in the private method for that controller
def lion_params
params.require(:lion).permit(:name, :about, :weight, :health, :health_notes, :photo_url, :trainer_id)
end
All the information is present in the form, so I am not quite sure where this error is coming from.