fixed application controller to work for api for Rails 4 for angular