How to find web_service_scaffold?

I'm trying to make a simple web service in rails 2.0.2, but are hvaing some problem with use the web service methods.

This following class is used (among others):

class WebController < ApplicationController   web_service_scaffold :invoke   web_service_dispatching_mode :layered   web_service :servicename, MyService.new end

When I open http://0.0.0.0:3000/web a NoMethodError is returned: NoMethodError (undefined method `web_service_scaffold' for WebController:Class)

How to tell my application where to find this method?

("gem list" tells me that actionwebservice (1.2.6) is installed)

I'm trying to make a simple web service in rails 2.0.2, but are hvaing some problem with use the web service methods.

This following class is used (among others):

class WebController < ApplicationController web_service_scaffold :invoke web_service_dispatching_mode :layered web_service :servicename, MyService.new end

When I open http://0.0.0.0:3000/web a NoMethodError is returned: NoMethodError (undefined method `web_service_scaffold' for WebController:Class)

How to tell my application where to find this method?

("gem list" tells me that actionwebservice (1.2.6) is installed)

a rails 2.0 app won't load actionwebservice by default. I put some instructions about how to get it going again at 钛刻专家——官网

I also saw this on the mailing list a few months ago:

Also, scaffolding using default templates requires the following line to be patched:

actionwebservice/lib/action_web_service/scaffolding.rb line 114 content = @template.render :file => default_template

TO

content = @template.render({:file => default_template, :use_full_path => false})

Fred

Thanks!