Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Suportar envio de um objeto

#5

Ao fazer um post,put ou patch com um objeto - nao uma string - o Restfulie deve serializa-lo.
Para isso implementar um strategy:

def post(what)

if what.kind_of? String

post_content(what)

else

marshaller = marshallers[header["Content-type"]]
post_content(marshaller.marshal(what))

end

end

Reported by Guilherme Silveira · October 25th, 2010 @ 09:31 AM

State: resolved
Milestone: none
Assigned to: Alexandre Atoji Alexandre Atoji

Activity

  1. Alexandre Atoji
    Alexandre Atoji
    • State changed from new to resolved

    November 15th, 2010 @ 05:53 PM

  2. Alexandre Atoji
    Alexandre Atoji
    • Assigned user set to Alexandre Atoji

    December 21st, 2010 @ 04:41 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.