On 19 May 2008, at 12:58, Varun Goel wrote:
>
> Hi All,
> I am creating one web service in ror.It''s working fine but
now i
> wanna make a method in webservice in which i want to pass hash as
> parameter.
>
> But i don''t have any idea how to do this.
>
> like
> api_method :get_value,:expects => [hash],:returns => [:string]
>
AFAIK, you can''t have an arbitrary hash. Have a look at
ActionWebService::Struct
Fred> but i don''t know how to pass means syntax to pass hash as
> parameter.Please help me out.
>
> Thanks
> Varun
> --
> Posted via http://www.ruby-forum.com/.
>
> >
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---