there is an image decorator, but the spree_asset_translations table is not created ..
ActionView::Template::Error (Mysql2::Error: Table 'my_store_dev.spree_asset_translations' doesn't exist: SHOW FULL FIELDS FROM spree_asset_translations):
got it working by adding a new migration
class AddTranslationToAsset < ActiveRecord::Migration
def up
Spree::Asset.create_translation_table! :alt => :string
end
def down
Spree::Asset.drop_translation_table!
end
end
and a new decorator :
module Spree
Asset.class_eval do
translates :alt
end
end
seems the image decorator is not anymore useful w latest Spree 1.3
there is an image decorator, but the spree_asset_translations table is not created ..
ActionView::Template::Error (Mysql2::Error: Table 'my_store_dev.spree_asset_translations' doesn't exist: SHOW FULL FIELDS FROM
spree_asset_translations
):got it working by adding a new migration
class AddTranslationToAsset < ActiveRecord::Migration def up Spree::Asset.create_translation_table! :alt => :string end def down Spree::Asset.drop_translation_table! end
end
and a new decorator : module Spree Asset.class_eval do translates :alt end end
seems the image decorator is not anymore useful w latest Spree 1.3