SpinaCMS / Spina

Spina CMS
http://www.spinacms.com
Other
2.19k stars 405 forks source link

Installing Spina 0.10.0 with Rails 5.0 #192

Closed yurimatheus closed 8 years ago

yurimatheus commented 8 years ago

After understand that need to use the 0.10.0 version I came across the issue of using Rails 5.0

After some research I got the following command:

new rails app use ruby-2.3.1@rails5.0

Within the project added:

# Spina CMS
gem 'spina' '0.10.0'
gem 'spina-template'

When I ran the 'bundle install' it gave error and asked me to run 'update bundle' which gave the following output:

Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...............
Bundler could not find compatible versions for gem "activerecord":
  In Gemfile:
    spina (= 0.10.0) was resolved to 0.10.0, which depends on
      globalize was resolved to 3.0.0, which depends on
        activerecord (>= 3.0.0)

    spina (= 0.10.0) was resolved to 0.10.0, which depends on
      globalize was resolved to 3.0.0, which depends on
        paper_trail (~> 2) was resolved to 2.6.3, which depends on
          activerecord (~> 3.0)

    rails (>= 5.0.0.1, ~> 5.0.0) was resolved to 5.0.0.1, which depends on
      activerecord (= 5.0.0.1)
Bundler could not find compatible versions for gem "rails":
  In Gemfile:
    rails (>= 5.0.0.1, ~> 5.0.0)

    spina (= 0.10.0) was resolved to 0.10.0, which depends on
      globalize was resolved to 3.0.0, which depends on
        paper_trail (~> 2) was resolved to 2.0.0, which depends on
          rails (~> 3)

    spina (= 0.10.0) was resolved to 0.10.0, which depends on
      rails (>= 5.0)

What can I do to run the project?

yurimatheus commented 8 years ago

After a few searches on Google ... I ended up finding the answer in #185 Issue the following command:

gem 'breadcrumbs_on_rails', github: 'seuros/breadcrumbs_on_rails', branch: 'patch-1'
gem 'globalize', github: 'globalize/globalize'
gem 'spina-template', github: 'denkGroot/Spina-template'
gem 'spina', github: 'denkGroot/Spina'

It is running perfectly!