chang create/destroy.js.erb file datatype to int