spree/spree — pull request #1422 by hardbap (2012-04-19 19:28:04+00:00)
Title: TaxRate#zone_id is not set when created with Spree Admin UI

You can duplicate this by attempting to create a TaxRate using the Admin UI

Ruby: 1.9.3-p125
Spree: 1.1.0.rc1
Rails: 3.2.3

NoMethodError in Spree/admin/tax_rates#index

undefined method `name' for nil:NilClass
Extracted source (around line #24):

21:

22: <% @tax_rates.each do |tax_rate|%>
23:

24:	<%=tax_rate.zone.name %>
25:	<%=tax_rate.tax_category.try(:name) || "N/A" %>
26:	<%=tax_rate.amount %>
27:	<%=tax_rate.included_in_price %>

You can also use the Rails console to view the TaxRate created and will see that the TaxRate#zone_id is nil.