JGa*_*rdo 5 ruby-on-rails actionmailer refinerycms
我之前从未遇到过炼油厂的问题.我按照教程http://railscasts.com/episodes/332-refinery-cms-basics来了解我的知识.然后当我使用Refinery CMS创建一个新的应用程序时,我收到此错误
Bundler could not find compatible versions for gem "actionmailer":
  In Gemfile:
    refinerycms (~> 2.1.0) ruby depends on
      actionmailer (< 3.3, >= 3.1.3) ruby
    rails (= 4.0.0) ruby depends on
      actionmailer (4.0.0)
但是CMS不应该默认这些东西吗?为什么现在只会出现错误?
giv*_*nse 15
最新的代码支持Rails 4; gem必须来自master分支,直到发布.
添加到您的Gemfile:
gem 'refinerycms-i18n', github: 'refinery/refinerycms-i18n', branch: 'master'
gem 'refinerycms', github: 'refinery/refinerycms', branch: "master"
# Strong parameters is a new feature not used by Refinery
gem 'protected_attributes'
做一个:
$ bundle install 
创建一个新的Refinery应用程序,该命令将根据您的要求而有所不同.为此,您可以遵循一些指南.就我而言,我将其添加到现有的应用程序中:
$ rails generate refinery:cms --fresh-installation
启动服务器并转到: http://localhost:3000/refinery
好吧,我的五美分是 Refinery 尚不可用于 Rails 4:
最好的,本。
| 归档时间: | 
 | 
| 查看次数: | 6392 次 | 
| 最近记录: |