spree-contrib / spree_digital

A Spree extension to enable downloadable products
http://spreecommerce.org
MIT License
117 stars 97 forks source link

Syntax error when adding digital version of product. #22

Closed digitalbias closed 11 years ago

digitalbias commented 12 years ago

Using rails 3.2.3 and the latest spree I get the following error when trying to add digital versions to a product:

SyntaxError (.bundler/ruby/1.8/spree_digital-49ac794ba76c/app/controllers/spree/admin/digitals_controller.rb:3: syntax error, unexpected ':', expecting kEND belongs_to "spree/product", find_by: :permalink ^):

digitalbias commented 12 years ago

Discovered that the 'solution' is to use ruby 1.9.2 instead of 1.8.7 because find_by: uses the new hash syntax instead of =>.

Fixed in my fork

iloveitaly commented 12 years ago

Could you submit a pull request to fix this issue? Thanks.

iloveitaly commented 11 years ago

Fixed in b381ede8e119ff10187030b4ac74f50e8f4fd55b