Class: CoreServicesController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- CoreServicesController
- Defined in:
- lib/eco_apps_master/controllers/core_services_controller.rb
Instance Method Summary collapse
Instance Method Details
#reset_config ⇒ Object
6 7 8 9 10 11 |
# File 'lib/eco_apps_master/controllers/core_services_controller.rb', line 6 def reset_config app = App.find_or_create_by_name(params[:app][:name]) app.attributes = params[:app] app.save render :xml => "<info>ok</info>", :status => :ok end |
#show ⇒ Object
13 14 15 16 |
# File 'lib/eco_apps_master/controllers/core_services_controller.rb', line 13 def show app = App.find_by_name(params[:id]) render :xml => (app.blank? ? {:error => "not exist"} : app).to_xml end |