[Facebooker-talk] profile_publisher_extensions.rb line #17
Mike Mangino
mmangino at elevatedrails.com
Tue Aug 5 17:44:15 EDT 2008
Doesn't Rails automatically call to_json on anything passed to
render :json?
The existing code is working for me.
Mike
On Aug 5, 2008, at 5:25 PM, Vidal Graupera wrote:
> Hi,
>
> def
> render_publisher_interface
> (fbml,publish_enabled=true,comment_enabled=false)
>
> render
> :json
> =
> >
> {:content
> =
> >
> {:fbml
> =
> >
> fbml
> ,:publishEnabled=>publish_enabled,:commentEnabled=>comment_enabled},
> :method=>"publisher_getInterface"}
> end
>
> The end of that line doesnt have ".to_json"
>
> Is this intentional or a bug? Seems like an oversight to me.
>
> Thanks,
>
> Vidal.
>
>
>
>
> =================
>
> Vidal Graupera
> vidalg at a2z.com
> 650-331-2714
> 130 Lytton Ave., Suite 300
> Palo Alto, CA 94301
>
> UnSpun by Amazon: Community Opinions ... Ranked!
> http://unspun.amazon.com
>
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk
--
Mike Mangino
http://www.elevatedrails.com
More information about the Facebooker-talk
mailing list