3

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

2

1 Answer 1

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.