I kept getting undefined local variable or method 'to_ary' for #<Product:0x0000010655ad28> when trying to use this extension with ruby 1.9. The quick fix is just adds the missing method in the rails engine activate method like so:
def to_ary
nil
end
I know it's a bit of a hack but it works...
Also, I removed the curly brackets that show up by default in the "Name or SKU" field and added .html_safe to the "Related Products" link in the sidebar.
Just a quick fix to get this working on 1.9.2.
I kept getting
undefined local variable or method 'to_ary' for #<Product:0x0000010655ad28>
when trying to use this extension with ruby 1.9. The quick fix is just adds the missing method in the rails engine activate method like so:I know it's a bit of a hack but it works...
Also, I removed the curly brackets that show up by default in the "Name or SKU" field and added
.html_safe
to the "Related Products" link in the sidebar.Cheers,
-Spencer