Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

undefined method `address_state' in _form.html.erb #74

Open
leosmeira opened this issue Jul 14, 2014 · 6 comments
Open

undefined method `address_state' in _form.html.erb #74

leosmeira opened this issue Jul 14, 2014 · 6 comments

Comments

@leosmeira
Copy link

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) } %>
@iloveitaly
Copy link
Member

What spree version are you using?

@leosmeira
Copy link
Author

Spree 2.2.4
Spree_address_book 2-2-stable

@ghost
Copy link

ghost commented Jul 31, 2014

@iloveitaly I see this same issue.

@iloveitaly
Copy link
Member

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

@ghost
Copy link

ghost commented Aug 1, 2014

@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.

@od3n
Copy link

od3n commented Nov 29, 2014

same issue.

Spree 2.4.1
spree_address_book 2-2-stable

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants