Can't upload the attachment
Opened this issue · 0 comments
Hi
Pictures upload works like a charm, but when I try to upload an attachment/document I'm receiving this error:
NameError - uninitialized constant RedactorRails::Attachment:
activesupport (4.0.13) lib/active_support/dependencies.rb:502:in load_missing_constant' activesupport (4.0.13) lib/active_support/dependencies.rb:184:in
const_missing'
activesupport (4.0.13) lib/active_support/inflector/methods.rb:228:in block in constantize' activesupport (4.0.13) lib/active_support/inflector/methods.rb:224:in
constantize'
activesupport (4.0.13) lib/active_support/core_ext/string/inflections.rb:66:in constantize' () Users/black/.rvm/gems/ruby-2.0.0-p451@fi/bundler/gems/redactor-rails-a00fe63f16ee/app/controller/redactor_rails/base_controller.rb:24:in
controller_model'
() Users/black/.rvm/gems/ruby-2.0.0-p451@fi/bundler/gems/redactor-rails-a00fe63f16ee/app/controller/redactor_rails/base_controller.rb:9:in create' actionpack (4.0.13) lib/action_controller/metal/implicit_render.rb:4:in
send_action'
...
I'm also getting this when trying to run
$ rails generate redactor:install --devise
Could not find "active_record/carrierwave/redactor/document.rb"...