spree-contrib / spree_skrill

Add support for Skrill / MoneyBookers Quick checkout as a payment method.
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
18 stars 16 forks source link

#6 still exist #9

Open pyladune opened 10 years ago

pyladune commented 10 years ago

gem 'spree', github: 'spree/spree' gem 'spree_auth_devise', github: 'spree/spree_auth_devise' gem 'spree_fancy', :github => 'spree/spree_fancy' gem 'spree_skrill', :git => 'git://github.com/spree/spree_skrill.git'

generates

/home/seb/.rbenv/versions/2.1.0-rc1/lib/ruby/gems/2.1.0/gems/activemodel-4.0.2/lib/active_model/deprecated_mass_assignment_security.rb:14: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 /home/seb/.rbenv/versions/2.1.0-rc1/lib/ruby/gems/2.1.0/bundler/gems/spree_skrill-d0efa3e6ddb0/app/models/spree/billing_integration/skrill/quick_checkout.rb:8:inclass:QuickCheckout'

thanks

clemens commented 10 years ago

You're using Rails 4 which doesn't come with attr_accessible out of the box. To continue using versions of Spree and extensions that use attr_accessible you must add the protected_attributes gem – just as the error message indicates.

seanrclayton commented 9 years ago

Having this issue myself, looks like spree no longer supports the protected_attributes gem:

[FATAL] Spree does not work with the protected_attributes gem installed! You MUST remove this gem from your Gemfile. It is incompatible with Spree.

JDutil commented 9 years ago

I think this project was merged into spree_gateway you should try using skrill that way.

seanrclayton commented 9 years ago

Thanks, yes I got it working.