Sha256: b3f6d1c88abdf0f00631d8adeac5c1f5266740e4ec306666d8ad50bcaa78475e

Contents?: true

Size: 658 Bytes

Versions: 6

Compression:

Stored size: 658 Bytes

Contents

class PeterconsuegraCountriesRegionsAndCitiesController < ApplicationController
  
  def get_regions
      selected_country ||= params[:selected_country]
      model ||= params[:model]
      render partial: 'shared/region_select_by_pete', locals: {model: model, label: "Region / State", selected_country: selected_country}
  end
  
  def get_cities
      selected_country ||= params[:selected_country]
      selected_region ||= params[:selected_region]
      model ||= params[:model]
      render partial: 'shared/city_select_by_pete', locals: {model: model, label: "Ciudad", selected_region: selected_region, selected_country: selected_country}
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
countries_regions_and_cities_by_pete-0.3.5 templates/peterconsuegra_countries_regions_and_cities_controller.rb
countries_regions_and_cities_by_pete-0.3.4 templates/peterconsuegra_countries_regions_and_cities_controller.rb
countries_regions_and_cities_by_pete-0.3.3 templates/peterconsuegra_countries_regions_and_cities_controller.rb
countries_regions_and_cities_by_pete-0.3.2 templates/peterconsuegra_countries_regions_and_cities_controller.rb
countries_regions_and_cities_by_pete-0.3.0 templates/peterconsuegra_countries_regions_and_cities_controller.rb
countries_regions_and_cities_by_pete-0.2.0 templates/peterconsuegra_countries_regions_and_cities_controller.rb