Hi, > You seem to indicate that you have tried other second parameters, but > are they definitely valid.
Pretty sure. I used the tests from http://re.cs.uct.ac.za/ >Here's a valid URL query string, for example: > > http://yoursite.com/oai?verb=ListRecords&from=2010-01-01 > > and here is one with a valid third parameter: > > http://yoursite.com/oai?verb=ListRecords&from=2009-12-01&until=2010-01-01 Unfortunatly your examples don't work either. I get this error: Processing OaiController#index (for 0.0.0.0 at 2010-01-19 14:15:44) [GET] Parameters: {"verb"=>"ListRecords", "from"=>"2010-01-01"} NoMethodError (private method `gsub!' called for Fri Jan 01 00:00:00 UTC 2010:Time): /usr/lib/ruby/1.8/date/format.rb:1061:in `_parse' /usr/lib/ruby/1.8/time.rb:240:in `parse' oai (0.0.12) lib/oai/provider/model/activerecord_wrapper.rb:123:in `sql_conditions' oai (0.0.12) lib/oai/provider/model/activerecord_wrapper.rb:46:in `find' oai (0.0.12) lib/oai/provider/response/list_records.rb:6:in `to_xml' oai (0.0.12) lib/oai/provider.rb:260:in `list_records' oai (0.0.12) lib/oai/provider.rb:286:in `send' oai (0.0.12) lib/oai/provider.rb:286:in `process_request' app/controllers/oai_controller.rb:6:in `index' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' ... Rendering /srv/mysite/rails/public/500.html (500 Internal Server Error) Even funnier is that the same link in the dev mode gives: Processing OaiController#index (for 127.0.0.1 at 2010-01-19 15:20:18) [GET] Parameters: {"verb"=>"ListRecords", "from"=>"2010-01-01"} TypeError (can't dup NilClass): oai (0.0.12) lib/oai/provider/model/activerecord_wrapper.rb:34:in `latest' oai (0.0.12) lib/oai/provider/response/record_response.rb:7:in `inherited' oai (0.0.12) lib/oai/provider/response.rb:73:in `call' oai (0.0.12) lib/oai/provider/response.rb:73:in `populate_defaults' oai (0.0.12) lib/oai/provider/response.rb:72:in `each' oai (0.0.12) lib/oai/provider/response.rb:72:in `populate_defaults' oai (0.0.12) lib/oai/provider/response.rb:68:in `valid?' oai (0.0.12) lib/oai/provider/response.rb:31:in `initialize' oai (0.0.12) lib/oai/provider.rb:260:in `new' oai (0.0.12) lib/oai/provider.rb:260:in `list_records' oai (0.0.12) lib/oai/provider.rb:286:in `send' oai (0.0.12) lib/oai/provider.rb:286:in `process_request' app/controllers/oai_controller.rb:6:in `index' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' ... Really have no idea what's going on here. :( -- Posted via http://www.ruby-forum.com/.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

