Class: CountriesController

Inherits:
ApplicationController show all
Defined in:
lib/forge/app/controllers/countries_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#app_init

Instance Method Details

#get_provinces_for_checkoutObject



3
4
5
6
7
8
9
10
# File 'lib/forge/app/controllers/countries_controller.rb', line 3

def get_provinces_for_checkout
  if params[:id]
    @provinces = Country.find(params[:id]).province_options_for_select()
    respond_to do |format|
      format.js {render :json => @provinces}
    end
  end
end