Sha256: bb0e7c56e5f94bc3df61360638cfb4478e119698e8804c5c21ae2062159fc952

Contents?: true

Size: 370 Bytes

Versions: 6

Compression:

Stored size: 370 Bytes

Contents

class OaiController < ApplicationController
  def index
    # Remove controller and action from the options.  Rails adds them automatically.
    options = params.delete_if { |k,v| %w{controller action}.include?(k) }
    provider = TaliaOaiProvider.new
    response =  provider.process_request(options)
    render :text => response, :content_type => 'text/xml'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
talia_core-0.7.0 generators/talia_oai/templates/oai_controller.rb
talia_core-0.5.4 generators/talia_oai/templates/oai_controller.rb
talia_core-0.5.3 generators/talia_oai/templates/oai_controller.rb
talia_core-0.5.2 generators/talia_oai/templates/oai_controller.rb
talia_core-0.5.1 generators/talia_oai/templates/oai_controller.rb
talia_core-0.5.0 generators/talia_oai/templates/oai_controller.rb