spree-contrib / spree_product_groups

Extension to Spree featuring Product Groups that were originally part of core prior to 1.1 release.
BSD 3-Clause "New" or "Revised" License
19 stars 56 forks source link

Rails 4.0 Upgrade Problems #25

Closed nonfungibletunji closed 11 years ago

nonfungibletunji commented 11 years ago

gemfile below:

gem 'spree', github: 'spree/spree'

gem 'spree', github: 'spree/spree', branch: '2-1-stable'

gem 'spree_auth_devise', github: 'spree/spree_auth_devise'

gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-1-stable'

gem 'spree_multi_slideshow', '~> 1.3.0'

gem 'spree_product_groups', github: 'spree/spree_product_groups', branch: '2-1-stable'

gem 'spree_bootstrap', :git => 'git://github.com/stunjiturner/spree_bootstrap.git'

gem 'spree_bootstrap', github: 'jdutil/spree_bootstrap'

error below:

/Users/sturner/.rvm/gems/ruby-1.9.3-p125/gems/activemodel-4.0.0/lib/active_model/deprecated_mass_assignment_security.rb:17:in attr_accessible':attr_accessibleis extracted out of Rails into a gem. Please use new recommended protection model for params(strong_parameters) or addprotected_attributesto your Gemfile to use old one. (RuntimeError) from /Users/sturner/.rvm/gems/ruby-1.9.3-p125/bundler/gems/spree_product_groups-5757a07b06c4/app/models/spree/product_group.rb:45:inclass:ProductGroup'

I added the gem 'protected_attributes' to my main spree app, but it caused my controllers to fail? any suggestions?

jumph4x commented 11 years ago

Did you mean Rails 4.0? Ruby is only up to 2.X or so :+1:

Editing title.

nonfungibletunji commented 11 years ago

yes On Sep 26, 2013, at 12:41 AM, Denis Ivanov notifications@github.com wrote:

Did you mean Rails 4.0? Ruby is only up to 2.X or so

— Reply to this email directly or view it on GitHub.

nonfungibletunji commented 11 years ago

i mean rails 4 and ruby 2 On Sep 26, 2013, at 12:41 AM, Denis Ivanov notifications@github.com wrote:

Did you mean Rails 4.0? Ruby is only up to 2.X or so

— Reply to this email directly or view it on GitHub.

radar commented 11 years ago

This should now be fixed. Please try again.

nonfungibletunji commented 11 years ago

good now

On Sep 26, 2013, at 12:41 AM, Denis Ivanov notifications@github.com wrote:

Did you mean Rails 4.0? Ruby is only up to 2.X or so

— Reply to this email directly or view it on GitHub.