I\'m trying to write an Ember application in Rails 4, and have decided to go with rails-api for the api controllers, while keeping the application controller in
rails-api
Not sure but maybe you need to include the ActionDispatch::Flash middleware to support the flash. Using:
ActionDispatch::Flash
config.middleware.use ActionDispatch::Flash
The docs says:
ActionDispatch::Flash: Supports the flash mechanism in ActionController.
I hope it helps