replace `to` with `action`

`to` is deprecated in Rails 4.2