permit params rails code example
Example: ruby permit params
private
def params_require
params.require(:table_singular_name).permit(:field1, :field2)
end
private
def params_require
params.require(:table_singular_name).permit(:field1, :field2)
end