0

我正在尝试将refinerycms 集成到现有应用程序中。这是我的宝石文件

source 'http://rubygems.org'

gem 'rails', '~> 3.1.0.rc8'

# Bundle edge Rails instead:
# gem 'rails',     :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'
gem 'mysql2'
gem "arel"
gem 'pdfkit'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails', "~> 3.1.0.rc"
  gem 'coffee-rails', "~> 3.1.0.rc"
  gem 'uglifier'
end

gem 'jquery-rails'
gem 'aws-s3', :require => 'aws/s3'
gem 'stomp'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'

group :test do
  # Pretty printed test output
  gem 'turn', :require => false
  gem 'cucumber-rails'
  gem 'database_cleaner'
  gem 'factory_girl'
end

gem 'refinerycms', :git => 'git://github.com/resolve/refinerycms.git'
gem 'refinerycms-generators', :git => 'git://github.com/resolve/refinerycms-generators.git'
gem 'seo_meta', :git => 'git://github.com/parndt/seo_meta.git'
# gem 'refinerycms-i18n', '~> 2.0.0', :git => 'git://github.com/resolve/refinerycms-i18n.git'
gem 'devise', '~>1.4.0'

我正在关注本教程:http ://refinerycms.com/guides/attaching-refinery-cms-to-an-existing-rails-application

当我到达rails generate refinerycms零件时,我收到以下错误:Could not find generator refinerycms.

关于为什么会发生这种情况的任何想法?

环境:

rvm 1.6.30
红宝石 1.9.2p180
导轨 3.1.0.rc8

4

1 回答 1

10

答案是运行以​​下命令:

rails g refinery:cms

于 2011-08-30T15:27:01.453 回答