Displaying 1 result from an estimated 1 matches for "mywsapi".
Did you mean:
myws_api
2006 May 31
2
Rails Bug when loading required files for API?
...y?
TIA,
Michel Benevento
--------------------------
/vendor/my_service.rb
----------
module MyService
class SoapResponse < ActionWebService::Struct
member :id, :int
member :title, :string
end
end
----------
/app/apis/myws_api.rb
----------
require "my_service"
class MywsApi < ActionWebService::API::Base
include MyService
api_method :find_products_by_category, :expects =>
[:string], :returns => [[MyService::SoapResponse]]
end
error msg (occurs only on second and subsequent requests):
-------------
NameError
uninitialized constant SoapResponse
/opt...