Class: ModsulatorController

Inherits:
ApplicationController show all
Defined in:
app/controllers/modsulator_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



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

#versionObject



7
8
9
# File 'app/controllers/modsulator_controller.rb', line 7

def version
  render plain: '2.0.0'
end