search for: before_invocation

Displaying 7 results from an estimated 7 matches for "before_invocation".

2007 Aug 20
0
before_invocation by block or method
Anyone can tell me the difference of using before_invocation''s block format and method format? I remember I see it somewhere but I can not find it now Thanks! Jack -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on...
2005 May 29
1
Disabling logging for web service calls?
I''m using ActionWebService to allow users to upload files to my rails app. I do this by encoding to Base64. The problem with this is that rails logs the file data so my log file size spirals out of control. Is there any way to selectively disable logging when the web api is invoked? ActiveRecord::Base.silence doesn''t seem too useful here as it''s only called AFTER
2006 Apr 11
3
Web services and security
Hi all, How do folks generally secure their Rails web services? A password in a config file? A ''webservice'' user in a ''Users'' table with its own password? LDAP authentication for every method? Only authenticate on the "important" methods? Something else I''m not thinking of? I''d like to be secure, yet practical, for the sake
2006 Apr 10
3
Regarding using Web service to handle file uploads
I am trying to code a Web Service in rails that can handle file uploads. Now as i read, SOAP 1.1 doesn''t support this yet..so i will have to use SOAP4R, right? This is fine from server side...but will this API will be compatible to .NET clients, which will be using standard SOAP API perhaps. Any idea, whats the way to go here?
2006 Jan 12
4
where is the ActionStruct::Base in rails???
there is a example in http://api.rubyonrails.com/classes/ActionWebService/Base.html and it mentioned <code> class SearchCriteria < ActionStruct::Base member :firstname, :string member :lastname, :string member :email, :string end </code> but i can not find ActionStruct''s source code in the rails''s distribution,and i found ''NameError:
2006 Nov 21
2
before_filter in actionwebservice controller using direct dispatching
The docs say that for direct dispatching mode to use controller filters, but when the controller is run I get the following error. The authorize method is in application.rb. Works fine when it''s not a web service api. Should I be using before_invocation instead even with direct dispatching mode? Or can I not have the authorize method in application.rb? undefined method `authorize'' for #<CustomerController:0x8ee54e0> class CustomerController < ActionController::Base after_filter :end_session before_filter :authorize web_s...
2006 Jul 30
3
Returning custom error messages in ActionWebService
I want to return my own error messages from an API instead of letting the client see the stack trace. I''m returning a custom structure so I guess I could just put a member in that structure for the error message, although that seems like kind of a hack. Any suggestions? Chris