attr_accessible seems to no longer work within my model.
attr_accessible
What is the way to allow mass assignment in Rails 4?
We can use
params.require(:person).permit(:name, :age)
where person is Model, you can pass this code on a method person_params & use in place of params[:person] in create method or else method