JSONP

4 views
Skip to first unread message

SMiX

unread,
Feb 17, 2011, 4:25:06 AM2/17/11
to restfulie
Is it possible to render JSONP with user-defined callback
(params[:callback]) instead of JSON?

Guilherme Silveira

unread,
Feb 21, 2011, 8:35:38 AM2/21/11
to rest...@googlegroups.com, SMiX
Hi there,

Which version of Restfulie are you using? VRaptor on Java/Restfulie on
C#/Restfulie on Ruby?

Can you show us your current rendering code?

Regards

Guilherme Silveira
Caelum | Ensino e Inovação
http://www.caelum.com.br/

SMiX

unread,
Feb 21, 2011, 9:51:34 AM2/21/11
to restfulie
Oh sorry. I am using ruby version.

def show
@user = User.find(params[:id])
respond_with(@user)
end

On 21 фев, 16:35, Guilherme Silveira
<guilherme.silve...@caelum.com.br> wrote:
> Hi there,
>
> Which version of Restfulie are you using? VRaptor on Java/Restfulie on
> C#/Restfulie on Ruby?
>
> Can you show us your current rendering code?
>
> Regards
>
> Guilherme Silveira
> Caelum | Ensino e Inovaçãohttp://www.caelum.com.br/

Guilherme Silveira

unread,
Feb 28, 2011, 8:28:49 AM2/28/11
to rest...@googlegroups.com
Hi there,

Can you gimme the exact response you are waiting for? I believe its
not supported, if you gimme the string response you expect over http I
can create the test case and support it.

Regards

Guilherme Silveira
Caelum | Ensino e Inovação
http://www.caelum.com.br/

Reply all
Reply to author
Forward
0 new messages