sferik/rails_admin — Issue #952: Instalation error when Carrierwave gem used
Author: koszcz
Created: 2012-01-31 20:00:23+00:00
State: open

I added gem to Gemfile and run install generator then i got those error messages

home/koszcz/ruby/mg/app/models/event.rb:14:in `': uninitialized constant Event::AvatarUploader (NameError)
from /home/koszcz/ruby/mg/app/models/event.rb:1:in `'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/inflector/methods.rb:229:in `block in constantize'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/inflector/methods.rb:228:in `each'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/inflector/methods.rb:228:in `constantize'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.1/lib/active_support/core_ext/string/inflections.rb:54:in `constantize'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/bundler/gems/rails_admin-605d441363fa/lib/rails_admin/abstract_model.rb:55:in `model'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/bundler/gems/rails_admin-605d441363fa/lib/rails_admin/config/model.rb:40:in `excluded?'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/bundler/gems/rails_admin-605d441363fa/lib/rails_admin/config/fields/association.rb:34:in `block in '
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/bundler/gems/rails_admin-605d441363fa/lib/rails_admin/config/base.rb:88:in `instance_eval'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/bundler/gems/rails_admin-605d441363fa/lib/rails_admin/config/base.rb:88:in `block in register_instance_option'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/bundler/gems/rails_admin-605d441363fa/lib/rails_admin/config/base.rb:62:in `block in register_instance_option'
from (erb):86:in `block (2 levels) in template'
from (erb):85:in `map'
from (erb):85:in `block in template'
from (erb):82:in `map'
from (erb):82:in `template'
from /home/koszcz/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/erb.rb:838:in `eval'
from /home/koszcz/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/erb.rb:838:in `result'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:111:in `block in template'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/actions/create_file.rb:54:in `call'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/actions/create_file.rb:54:in `render'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/actions/create_file.rb:63:in `block (2 levels) in invoke!'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/actions/create_file.rb:63:in `open'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/actions/create_file.rb:63:in `block in invoke!'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/actions/empty_directory.rb:114:in `call'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/actions/empty_directory.rb:114:in `invoke_with_conflict_check'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/actions/create_file.rb:61:in `invoke!'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/actions.rb:95:in `action'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/actions/create_file.rb:26:in `create_file'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:110:in `template'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/bundler/gems/rails_admin-605d441363fa/lib/generators/rails_admin/install_generator.rb:59:in `install'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `block in invoke_all'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `each'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/generators.rb:170:in `invoke'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/commands/generate.rb:12:in `'
from /home/koszcz/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/commands.rb:29:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'

AvatarUploader is a class which i generated with Carrierwave, it handles file uploads