spree-contrib/spree_active_shipping

Product Packages tab throwing UrlGenerationError

michaelmichael opened this issue · 2 comments

Selecting spree_active_shipping's "Product Packages" tab for any individual product is consistently throwing ActionController::UrlGenerationError. I have tested this in several different Spree installs and on two different machines.

Rails version: 4.0.4
Ruby version: 2.1.1
Gemfile
Stack Trace

Steps to reproduce this issue:

  1. Create a new Rails app. In my case with a postgresql database: rails new my-store _4.0.4_ -d postgresql
  2. Install Spree 2.2: gem install spree | spree install --auto-accept (issue occurs without auto-accept flag, also)
  3. Add money 6.0.1 and spree_active_shipping to gemfile, bundle install
  4. Run migrations for spree_active_shipping
  5. Run rails s and visit localhost:3000/admin/products
  6. Go to any product's detail page and select the "Product Packages" tab. Or, if using sample data visit http://localhost:3000/admin/products/ruby-on-rails-tote/product_packages

I'm expecting these actions to take me to the product packages tab for a product, or perhaps for Spree to fail gracefully and generate a user-actionable error.

I initially encountered this error in a Spree app running on Heroku. I tried it on my local machine and have gotten the same results.

thanks for the excellent issue description @michaelmichael I can reproduce it, working on a fix now.

Awesome! Thanks for the quick fix!