spree_address_book icon indicating copy to clipboard operation
spree_address_book copied to clipboard

undefined method `address_state' in _form.html.erb

Open leosmeira opened this issue 10 years ago • 6 comments

Showing /usr/local/rvm/gems/ruby-2.1.0/bundler/gems/spree_address_book-b2ba6f5a96d9/app/views/spree/addresses/_form.html.erb where line #12 raised:

undefined method `address_state' for #<#Class:0x00000002413730:0x000000023a8fe8>

Extracted source (around line #12):

   <%= address_field(address_form, :state, address_id) { address_state(address_form, address.country, address_id) } %>

leosmeira avatar Jul 14 '14 16:07 leosmeira

What spree version are you using?

iloveitaly avatar Jul 14 '14 17:07 iloveitaly

Spree 2.2.4 Spree_address_book 2-2-stable

leosmeira avatar Jul 14 '14 17:07 leosmeira

@iloveitaly I see this same issue.

ghost avatar Jul 31 '14 20:07 ghost

I'm not using spree 2.2.x, could you submit a PR for this?

iloveitaly avatar Jul 31 '14 21:07 iloveitaly

@iloveitaly I've fixed some of these issues but I'm not seeing the point of this gem because Spree seems to pull the last address from the last order when I go to the checkout, not the one I have specified in this gem.

It seems there may have been some changes in Spree 2.2 which have not accounted for yet that make this gem obsolete. Will report back if I find out what they are.

ghost avatar Aug 01 '14 00:08 ghost

same issue.

Spree 2.4.1 spree_address_book 2-2-stable

od3n avatar Nov 29 '14 09:11 od3n