datamapper / dm-rails

Integrate DataMapper with Rails 3
http://datamapper.org/
MIT License
175 stars 39 forks source link

gem dependency clash with rails 3.2.1 #36

Closed jessereynolds closed 8 years ago

jessereynolds commented 12 years ago

Hello

I'm new to the world of dm-rails, so this is probably just a newbee thing.

I found that following the instructions in the README failed due to a clash on activepack version requirements, as sass-rails wants actionpack version 3.1.x ...

jesse@Heart-of-Gold $ bundle install
Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "actionpack":
  In Gemfile:
    sass-rails (~> 3.1.5) ruby depends on
      actionpack (~> 3.1.0) ruby

    actionpack (3.2.1)

Commenting out the following lines and running 'bundle update' once more fixes it for now...

#group :assets do                                                                                                                          
#  gem 'sass-rails',   '~> 3.1.5'                                                                                                          
#  gem 'coffee-rails', '~> 3.1.1'                                                                                                          
#  gem 'uglifier', '>= 1.0.3'                                                                                                              
#end                                                                                                                                       
highruned commented 12 years ago

Same here with rails 3.2.1 and 3.0.7

Current solution: http://stackoverflow.com/questions/8960252/rails-bundler-could-not-find-compatible-versions-for-gem-actionpack

group :assets do                                                                                                                          
  gem 'sass-rails', '~> 3.2.3'                                                                                                          
  gem 'coffee-rails', '~> 3.2.1'                                                                                                          
  gem 'uglifier', '>= 1.0.3'                                                                                                              
end

Perhaps the readme instructions could be more clear on which Rails version last worked successfully (gem install rails -v 3.0.4).

Edit: nope, not sure which version of Rails the dm-rails is suppose to work with the current template/Gemfile (tried 3.2.0, 3.2.1, 3.0.7, 3.0.4), so I'll stick with bumping.

jessereynolds commented 12 years ago

Yes, I bumped the versions of sass-rails and coffee-rails also and all good.

Except using rails form helpers in my haml is failing, as per: http://datamapper.lighthouseapp.com/projects/20609/tickets/1219-rails3-haml-datamapper-form_for-person-do-f-renders-nothing#ticket-1219-6 ... perhaps I should downgrade to rails 3.1.x

tpitale commented 8 years ago

I think this should all be working. If you're having trouble with the latest Rails 4, please leave a comment.