Use respond_with and respond_to.
Merge pull request #122 from abuiles/respond-with-to

Use respond_with and respond_to.