modify Grunt task
rails controller for API
post method for Rails