Railsdog demo - cross-sells #1

Closed
Seaborg opened this Issue Jul 18, 2011 · 0 comments

Projects

None yet

2 participants

@Seaborg
Seaborg commented Jul 18, 2011

Hi,
Sorry for creating new issue on railsdog_radio_theme but railsdog demo it's not up anymore??I installed railsdog radio demo, it's all working fine except I'm getting error related to cross-sell as per below, am I'm missing something?I would appreciate any help.

Processing by ProductsController#show as HTML
Parameters: {"id"=>"test"}
�[1m�[36mTaxonomy Load (0.7ms)�[0m �[1mSELECT taxonomies.* FROM taxonomies WHERE taxonomies.name = 'Categories' LIMIT 1�[0m
�[1m�[35mTaxon Load (0.4ms)�[0m SELECT taxons.* FROM taxons WHERE (taxons.taxonomy_id = 854451430 AND (parent_id is null)) LIMIT 1
�[1m�[36mProduct Load (0.3ms)�[0m �[1mSELECT products.* FROM products WHERE products.permalink = 'test' LIMIT 1�[0m
�[1m�[35mVariant Load (0.5ms)�[0m SELECT variants.* FROM variants WHERE variants.product_id = 1 AND (variants.deleted_at is null)
�[1m�[36mSQL (1.3ms)�[0m �[1mdescribe option_values_variants�[0m
�[1m�[35mOptionValue Load (0.3ms)�[0m SELECT option_values., t0.variant_id as the_parent_record_id FROM option_values INNER JOIN option_values_variants t0 ON option_values.id = t0.option_value_id WHERE (t0.variant_id = 1)
�[1m�[36mImage Load (0.6ms)�[0m �[1mSELECT assets.
FROM assets WHERE assets.type = 'Image' AND (assets.viewable_id = 1 and assets.viewable_type = 'Variant') ORDER BY position�[0m
Rendered shared/_product_banner.html.erb (1.5ms)
�[1m�[35mTaxon Load (0.5ms)�[0m SELECT taxons.* FROM taxons WHERE (taxons.parent_id = 1000) ORDER BY lft
Rendered shared/all_products.html.erb (3.0ms)
�[1m�[36mProduct Load (0.4ms)�[0m �[1mSELECT products.* FROM products WHERE (id IN (NULL))�[0m
Rendered shared/recently_viewed_products.html.erb (2.1ms)
�[1m�[35mImage Load (0.6ms)�[0m SELECT assets.* FROM assets WHERE assets.type = 'Image' AND (assets.viewable_id = 1 AND assets.viewable_type = 'Product') ORDER BY position LIMIT 1
Rendered products/image.html.erb (28.2ms)
�[1m�[36mSQL (0.4ms)�[0m �[1mSELECT COUNT(
) FROM assets WHERE assets.type = 'Image' AND (assets.viewable_id = 1 AND assets.viewable_type = 'Product')�[0m
Rendered products/thumbnails.html.erb (2.7ms)
�[1m�[35mVariant Load (0.6ms)�[0m SELECT variants.
FROM variants WHERE (variants.product_id = 1 AND (variants.is_master = 1 AND variants.deleted_at IS NULL)) LIMIT 1
�[1m�[36mSQL (0.5ms)�[0m �[1mSELECT COUNT(
) FROM variants WHERE (variants.product_id = 1 AND (variants.is_master = 0 AND variants.deleted_at IS NULL))�[0m
�[1m�[35mRelationType Load (0.6ms)�[0m SELECT relation_types.
FROM relation_types WHERE relation_types.applies_to = 'Product' ORDER BY name
Rendered products/_cart_form.html.erb (168.6ms)
Rendered products/show.html.erb within layouts/spree_application (217.2ms)
Completed 500 Internal Server Error in 512ms

ActionView::Template::Error (undefined method cross_sells' for #<Product:0x0000010926e7d8>): 30: 31: <% end %> 32: 33: <% if @product.cross_sells.present? %> 34: <div class="extras"> 35: <% @product.cross_sells.each do |cross_sell| %> 36: <p> app/views/products/_cart_form.html.erb:33:inblock (2 levels) in _app_views_products__cart_form_html_erb__91773230628241594_2204568900__1279333646931059755'
app/views/products/_cart_form.html.erb:2:in block in _app_views_products__cart_form_html_erb__91773230628241594_2204568900__1279333646931059755' app/views/products/_cart_form.html.erb:1:in_app_views_products__cart_form_html_erb__91773230628241594_2204568900__1279333646931059755'
app/views/products/show.html.erb:25:in `_app_views_products_show_html_erb__2198363017086903018_2205447200__3541612603606645685'

Rendered /Users/Seaborg/.rvm/gems/ruby-1.9.1-p378@rails_3_0_9/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
�[1m�[36mProductProperty Load (0.3ms)�[0m �[1mSELECT product_properties.* FROM product_properties WHERE product_properties.product_id = 1�[0m
�[1m�[35mSQL (2.7ms)�[0m describe properties_prototypes
�[1m�[36mProperty Load (0.6ms)�[0m �[1mSELECT properties.* FROM properties WHERE (properties.id = 1)�[0m
Rendered /Users/Seaborg/.rvm/gems/ruby-1.9.1-p378@rails_3_0_9/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (172.9ms)
Rendered /Users/Seaborg/.rvm/gems/ruby-1.9.1-p378@rails_3_0_9/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (180.3ms)

@schof schof added a commit that closed this issue Sep 11, 2011
@mikz @schof mikz + schof Fixed error when precompiling assets
[Fixes #1]
65b583c
@schof schof closed this in 65b583c Sep 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment