【问题标题】:Integrating refinerycms into existing rails app将炼油厂cms 集成到现有的 Rails 应用程序中
【发布时间】:2013-10-04 10:22:57
【问题描述】:

我正在尝试将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'

【问题讨论】:

    标签: ruby-on-rails devise refinerycms


    【解决方案1】:

    对于您描述的确切环境,有一个官方指南:

    Using Refinery with Rails 3.1 and Devise

    它甚至不假设您已经让应用程序运行。该指南从创建应用程序和添加 Devise 到在此基础上安装 Refinery。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-11-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多