olimart/moreflowers2 — Issue #30: prepare order modal fails on submit on heroku
Author: olimart
Created: 2012-01-12 17:44:06+00:00
State: open

deployed on heroku so you can take a look
heroku logs says

ActionView::Template::Error (undefined method `purchase_itemid' for #):
2012-01-12T17:41:18+00:00 app[web.1]: 1:

2012-01-12T17:41:18+00:00 app[web.1]: 2:
2012-01-12T17:41:18+00:00 app[web.1]: cache: [GET /assets/images/ui-bg_glass_65_ffffff_1x400.png] miss
2012-01-12T17:41:18+00:00 app[web.1]:
2012-01-12T17:41:18+00:00 app[web.1]:
2012-01-12T17:41:18+00:00 app[web.1]: 5: <%= hidden_field_tag "purchase_line_item[receive_items_attributes][#{index}][order_id]", order.id %>
2012-01-12T17:41:18+00:00 app[web.1]: 6: <%= select_tag "purchase_line_item[receive_items_attributes][#{index}][color_id]", options_for_select([[order.color.name, order.color_id]], order.color_id), :readonly => true %>
2012-01-12T17:41:18+00:00 app[web.1]: app/views/orders/_storages_stock.html.erb:3:in `_app_views_orders__storages_stock_html_erb___1485477133894975933_44660440'
2012-01-12T17:41:18+00:00 app[web.1]: app/views/orders/prepare_through_dialog.js.erb:6:in `block in _app_views_orders_prepare_through_dialog_js_erb___1780686295387613364_45059960'
2012-01-12T17:41:18+00:00 app[web.1]:
2012-01-12T17:41:18+00:00 app[web.1]: app/views/orders/prepare_through_dialog.js.erb:5:in `each'
2012-01-12T17:41:18+00:00 app[web.1]: 4: <%= hidden_field_tag "purchase_line_item[receive_items_attributes][#{index}][variation_id]",purchase_line_item.variation_id %>
2012-01-12T17:41:18+00:00 app[web.1]: 3: <%= hidden_field_tag "purchase_line_item[receive_items_attributes][#{index}][purchase_item_id]", purchase_line_item.purchase_itemid %>
2012-01-12T17:41:18+00:00 app[web.1]:
2012-01-12T17:41:18+00:00 app[web.1]: cache: [POST /orders/prepare_through_dialog] invalidate, pass
2012-01-12T17:41:18+00:00 app[web.1]: Processing by OrdersController#prepare_through_dialog as JS
2012-01-12T17:41:18+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"7Y+cr9HBJtsNuZORWPYMnUlBjU6tMWGnxKjPKkuy0o4=", "purchase_line_item_id"=>"6", "orders"=>{"6"=>{"id"=>"6", "temp_quantity"=>"2", "prepared_quantity"=>"0", "quantity"=>"2", "storage_id"=>"1"}}}
2012-01-12T17:41:18+00:00 app[web.1]: app/views/orders/prepare_through_dialog.js.erb:5:in `_app_views_orders_prepare_through_dialog_js_erb___1780686295387613364_45059960'
2012-01-12T17:41:18+00:00 app[web.1]: Completed 500 Internal Server Error in 12ms