WebServices & controllers

You are trying to mix AWS with REST API. If you really need them to coexists, you shouldn't use direct dispatching mode. See http://manuals.rubyonrails.com/read/book/10