undefined method `flash' for ActionDispatch::Request

前端 未结 3 1955
情歌与酒
情歌与酒 2020-12-08 20:14

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

3条回答
  •  生来不讨喜
    2020-12-08 20:55

    If you're like me and creating an API on top of an existing application, you can add this to your config/application.rb file:

    config.api_only = false

提交回复
热议问题