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:
- Create a new Rails app. In my case with a postgresql database:
rails new my-store _4.0.4_ -d postgresql
- Install Spree 2.2:
gem install spree | spree install --auto-accept
(issue occurs without auto-accept flag, also) - Add money 6.0.1 and spree_active_shipping to gemfile,
bundle install
- Run migrations for spree_active_shipping
- Run
rails s
and visit localhost:3000/admin/products - 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!