replace `to` with `action`

`to` is deprecated in Rails 4.2
Merge pull request #4 from Crunch09/remove-deprecation-warning

replace `to` with `action`