我正在尝试将最新版本的activeadmin gem安装到我的rails应用程序中。我遵循了文档http://activeadmin.info/documentation.html,但是当我运行rake db:migrate。
时出现了这个错误rake aborted!
/Library/Ruby/Gems/1.8/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require': no such file to load -- InheritedResources
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
我安装了InheritedResources
gem install InheritedResources
这是我的宝石文件
source 'https://rubygems.org'
gem 'rails', '3.2.3'
#working with capastrano
# gem 'mysql2', '< 0.3'
#upgraded for local
gem 'mysql2', "~> 0.3.11"
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
gem 'compass-rails'
# gem 'haml', '3.1.4'
# gem 'haml-rails'
end
gem 'activeadmin'
gem "meta_search", '>= 1.1.0.pre'
gem 'inherited_resources'
#Media managment
gem 'ruby_parser'
gem 'hpricot'
group :development do
##gem 'annotate', :git => 'git://github.com/ctran/annotate_models.git'
end
group :test do
end
group :production do
end
# deployment
gem 'capistrano'
这是我的宝石环境
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.6
- RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-11
- GEM PATHS:
- /Library/Ruby/Gems/1.8
- /Users/aaalsubaie/.gem/ruby/1.8
- /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- "gem" => "--no-ri --no-rdoc"
- REMOTE SOURCES:
- http://rubygems.org/