On 8 Feb 2008, at 15:15, Eivind Løland-Andersen wrote:
>
> 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
http://www.texperts.com/2007/12/21/using-action-web-service-with-rails-20/
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
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---