Class: ModsulatorController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- ModsulatorController
- Defined in:
- app/controllers/modsulator_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
2 3 4 5 |
# File 'app/controllers/modsulator_controller.rb', line 2 def create mods_converter = Modsulator.new(File.new(params[:file].tempfile), params[:filename]) render xml: mods_converter.convert_rows() end |
#version ⇒ Object
7 8 9 |
# File 'app/controllers/modsulator_controller.rb', line 7 def version render plain: '2.0.0' end |