Just use permit_params methods instead long words
Merge pull request #2720 from WilliamZang/patch-2

Just use permit_params methods instead long words
remove unused code