attr_accessible :name, :value, :var, as: :admin
config.attr_accessible_role { :admin }
class PeopleController < ApplicationController
def create
Person.create(person_params)
end
private
def person_params
params.require(:person).permit(:name, :age)
end
end