search for: customerapi

Displaying 2 results from an estimated 2 matches for "customerapi".

2006 Nov 21
2
before_filter in actionwebservice controller using direct dispatching
...d in application.rb? undefined method `authorize'' for #<CustomerController:0x8ee54e0> class CustomerController < ActionController::Base after_filter :end_session before_filter :authorize web_service_dispatching_mode :direct web_service_scaffold :invoke web_service_api CustomerApi end Chris --~--~---------~--~----~------------~-------~--~----~ 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...
2007 Dec 13
3
Realise a web service with ruby on rails.
...ice with rails, but it''s the response it''s very slow. I want only saw all element present in my base. I did a base Customers (with element like id, name, phone,...). I added two elements. I did a model customer, a web_service customer. In the file /app/apis/customer_api.rb class CustomerApi < ActionWebService::API::Base api_method :listid, :expects => [:int], :returns => [Customer] api_method :listall, :returns => [[:int]] In the file /app/controller/customer_controller.rb class CustomerController < ApplicationController wsdl_service_name ''Customer'...