将refinerycms集成到现有的rails应用程序中

时间:2013-10-04 10:22:58

标签: ruby-on-rails devise refinerycms

我正在尝试将refinerycms与我现有的rails应用程序集成(我的应用程序使用设计)。 遵循此tutorial并在运行命令rails g refinery:cms --fresh-installation

时出现此错误
==  AddSourceUrlToBlogPosts: migrating ========================================
rake aborted!
An error has occurred, this and all later migrations canceled:

uninitialized constant Refinery::User/home/sunloverz/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:230:in `block in constantize'
/home/sunloverz/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:229:in `each'

我的宝石文件:

source 'https://rubygems.org'

gem 'rails', '3.2.13'

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

group :development, :test do
  gem 'sqlite3'
end


# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platforms => :ruby

  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails', '~> 2.3.0'

gem "devise", "~> 2.2.3"

gem "refinerycms-core", "~> 2.1.0"
gem "refinerycms-dashboard", "~> 2.1.0"
gem "refinerycms-images", "~> 2.1.0"
gem "refinerycms-pages", "~> 2.1.0"
gem "refinerycms-resources", "~> 2.1.0"
gem 'refinerycms-blog', :git => 'git@github.com:refinery/refinerycms-blog.git', :branch => 'master'

1 个答案:

答案 0 :(得分:0)

您所描述的确切环境的官方指南:

Using Refinery with Rails 3.1 and Devise

它甚至不假设你已经有应用程序正常工作。该指南来自创建应用程序并将Devise添加到安装Refinery之上。