3 4 5 6
# File 'app/controllers/simple_address/regions_controller.rb', line 3 def index @regions = Region.search(params) render json: @regions.as_json(only: [:id, :name]) end