SammyLin/redactor-rails

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:inconst_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:inconstantize'
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:incontroller_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:insend_action'
...

I'm also getting this when trying to run

$  rails generate redactor:install --devise

Could not find "active_record/carrierwave/redactor/document.rb"...