Frederick Cheung wrote:
> On Jun 8, 3:56�pm, Ralph Shnelvar <[email protected]> wrote:
>> Frederick Cheung wrote:
>> > On Jun 8, 3:00 pm, Ralph Shnelvar <[email protected]> wrote:
> 
>> Fred:
>>
>> Ok ... lets say I have two variables ABC and XYZ and I want to send the
>> values of those two variables back to my jQuery code ...
>>
>> What's the magic invocation to do that in Rails?
> 
> I'd just write render :json => {:abc => 1, :xyz => 2}.if you want to
> do it via a header because something else is in the body then call
> to_json yourself to get the json data and stick it in a header.
> 
> Fred

Fred (or anyone):

Do you know of any tutorial that explains this header stuff?
-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to