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

spree_core <= 0.40.3 has no helper method available_countries #1

Closed
antage opened this issue Mar 21, 2011 · 2 comments
Closed

spree_core <= 0.40.3 has no helper method available_countries #1

antage opened this issue Mar 21, 2011 · 2 comments

Comments

@antage
Copy link

antage commented Mar 21, 2011

With spree_core 0.40.3 this extension invokes error:

ActionView::Template::Error (undefined local variable or method `available_countries' for #<#<Class:0x7fe3f284bec0>:0x7fe3f2843518>):
    2:   <p id="<%= [address_name, field].join('_') %>" class="field">
    3:     <% if field == "country" %>
    4:       <%= address_form.label :country_id, t(field, :scope => [:activerecord, :attributes, :address]) %>
    5:       <span><%= address_form.collection_select :country_id, available_countries, :id, :name, {}, {:class => 'required'} %></span>
    6:       <span class="req">*</span>
    7:     <% elsif field == "state" && Spree::Config[:address_requires_state] %>
    8:       <%= address_form.label :state_id, t(field, :scope => [:activerecord, :attributes, :address]) %>
@romul
Copy link
Collaborator

romul commented Jun 16, 2012

As workaround, code of this helper can be copied to ApplicationHelper. In any way Spree 0.30.x & 0.40.x are not recommended for use atm.

@antage
Copy link
Author

antage commented Jun 16, 2012

I think this issue is outdated.

@antage antage closed this as completed Jun 16, 2012
jsqu99 pushed a commit to jsqu99/spree_address_book that referenced this issue Jul 31, 2013
plapcity pushed a commit to Wondersauce/spree_address_book that referenced this issue May 6, 2015
Fixed a few spec issues dealing with filling out address forms.
jtapia referenced this issue in magma-labs/solidus_address_book Jun 26, 2019
Update configuration files
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

2 participants