Sha256: 38e69533defd9c57cc3cfb0c017fca329f4db9720ca69aceff1b163a4b4ca80e

Contents?: true

Size: 313 Bytes

Versions: 2

Compression:

Stored size: 313 Bytes

Contents

module C80Estate
  class AjaxController < ActionController::Base

    def get_atype_propnames

      atype_id = request.params[:atype_id]
      obj = Atype.get_propnames(atype_id)

      respond_to do |format|
        format.js { render json: obj, status: :ok }
        # format.json
      end

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
c80_estate-0.1.0.1 app/controllers/c80_estate/ajax_controller.rb
c80_estate-0.1.0 app/controllers/c80_estate/ajax_controller.rb