3
votes

I am running a Rails app uploading images with a Cloudinary/Attachinary configuration.Locally, everything is fine, my app run and I can upload pictures to Cloudinary. I can push on Heroku, migrations are OK, config vars too but the app crashes with that error:

<class:CorsController>': undefined method `respond_to' for Attachinary::CorsController:Class (NoMethodError)

Some help would be really appreciated.

Thanks,

Kevin

1
maybe try bundle update - user2954587
Attachinary solves this problem since this commit: github.com/assembler/attachinary/commit/… You need to get the master version of the gem gem 'attachinary', github: 'assembler/attachinary' - Kevin R.

1 Answers

1
votes

Just found this: How to include respond_to when you don't inherit from ApplicationController in Rails 4? and it solves my problem.

#Gemfile
gem 'responders'

then

$ bundle install
$ rails g responders:install