Re: [Refinery CMS:8699] Using Rails 4

1,175 views
Skip to first unread message

Philip Arndt

unread,
Feb 26, 2013, 4:22:00 PM2/26/13
to refine...@googlegroups.com
Something else is likely setting the railties dependency. Check Gemfile.lock for railties (~> 3.1) and see which gem entries it lives under for more information.

Ken Ip

unread,
Feb 26, 2013, 5:27:35 PM2/26/13
to refine...@googlegroups.com
@parndt, thanks for the reply. Unfortunately it doesn't generate a new .lock file without resolving dependencies. I've already bundled without refinerycms without issues and this only appears when I add refinery.

Ken Ip

unread,
Feb 26, 2013, 6:02:25 PM2/26/13
to refine...@googlegroups.com
 @parndt, thanks for the pointers actually. Made me got back to this and looked at higher up dependencies (not sure why I completely assumed they would work). Anyway, for anyone who'd like to try running in rails 4, here's what I have in the Gemfile to get it to run:

```
gem 'devise', "~> 2.2.3", github: "plataformatec/devise", branch: 'rails4'
gem 'awesome_nested_set', github: "collectiveidea/awesome_nested_set", branch: 'rails4'
gem 'paper_trail', github: "airblade/paper_trail", branch: 'rails4'
gem 'refinerycms', "2.1.0.dev", github: "refinery/refinerycms", branch: 'rails4'
gem 'refinerycms-i18n', github: "refinery/refinerycms-i18n"
```

hau

unread,
May 4, 2013, 8:48:23 AM5/4/13
to refine...@googlegroups.com
I tried putting the few lines in Gemfile.  When I run
bundle exec rails generate refinery:cms --fresh-installation

I got errors:
/home/hau/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- routing_filter/adapters/rails_4 (LoadError)

any ideas?

在 2013年2月27日星期三UTC+8上午7时02分25秒,Ken Ip写道:

parndt

unread,
May 4, 2013, 2:32:51 PM5/4/13
to refine...@googlegroups.com
You need to use the latest master of routing-filter https://github.com/svenfuchs/routing-filter

gem 'routing-filter', :github => 'svenfuchs/routing-filter'
Message has been deleted

Uģis Ozols

unread,
Jun 5, 2013, 7:44:46 AM6/5/13
to refine...@googlegroups.com
Refinery CMS doesn't support Rails 4. There is a rails4 branch but it hasn't been updated in a while...

On Monday, June 3, 2013 9:58:48 PM UTC+3, Mark Nyon wrote:
Hi,

I've tried using all the code in this thread, but I'm still running into the following error when trying to install Refinery and Rails 4:

Bundler could not find compatible versions for gem "railties":
  In Gemfile:
    refinerycms (~> 2.1.0.dev) ruby depends on
      railties (~> 3.2.0.beta) ruby

    rails (= 4.0.0.rc1) ruby depends on
      railties (4.0.0.rc1)

Here's a gist with my Gemfile.

Any ideas? Thanks,
Mark

dana tassler

unread,
Nov 12, 2014, 10:22:52 AM11/12/14
to refine...@googlegroups.com
I know this is an older post, but is there currently support for implementation in an existing Rails 4 (4.1, in my case) application?

If not, what can I do to help?

On Tuesday, February 26, 2013 10:53:07 AM UTC-5, Ken Ip wrote:

Guys,

Sorry for a trivial question. I don't know how this happens:

Bundler could not find compatible versions for gem "railties":
  In Gemfile:
    refinerycms (= 2.1.0.dev) ruby depends on
      railties (~> 3.1) ruby

    rails (= 4.0.0.beta1) ruby depends on
      railties (4.0.0.beta1)

Here's the Gemfile:

gem 'refinerycms', "2.1.0.dev", github: "refinery/refinerycms", ref: 'd1c945484c'
gem 'refinerycms-i18n', github: "refinery/refinerycms-i18n"

What I don't get is where did refinerycms define railties (~> 3.1) because the only dependency on railties is at core and it definitely shows ['>= 3.1.3', '< 4.1'].

Am I missing something?

Philip Arndt

unread,
Nov 12, 2014, 12:17:09 PM11/12/14
to refine...@googlegroups.com
Yep, the version you want is the current master branch. For your Gemfile:

gem 'refinerycms', git: 'https://github.com/refinery/refinerycms'

Then bundle, and run "rails generate refinery:cms"

It's easier with a new application:

rails new appname -m http://refinerycms.com/t/edge


Sumit Sharma

unread,
Jan 17, 2015, 4:41:44 AM1/17/15
to refine...@googlegroups.com
I'm having a rails app and I've tried with the same you suggested. but I got the error "Could not find generator refinery:cms".

I'm using Ruby '2.1.3' and Rails '4.1.5'

ratnamraj raj

unread,
Mar 7, 2015, 2:11:38 AM3/7/15
to refine...@googlegroups.com
Bundler could not find compatible versions for gem "rails":
  In Gemfile:
    refinerycms-letter_to_editors (>= 0) ruby depends on
      refinerycms-core (~> 2.0.9) ruby depends on
        rails (< 3.3, >= 3.1.3) ruby

    rails (4.0.0.rc1)
Reply all
Reply to author
Forward
0 new messages