<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hey,<br>
<br>
<tt>send_data</tt> sends binary data, not getting the expected results
doesn't tell me much, can you find out what you are getting back?
content-type etc... Also what are you expecting back, json, xml, a file?<br>
<br>
I recommend using curl or even a browser to talk to rails via http and
see if the data is what you expect your Flex app to receive as really
it's just acting as an API.<br>
<br>
Also for the invalid auth token just remove <tt>protect_from_forgery</tt>
from you application controller, or at least that is where you should
start as that is where the error is originating from I believe.<br>
<br>
Hope this gets you started.<br>
<br>
Ken<br>
<br>
Jordi Noguera Leon wrote:
<blockquote
cite="mid:k2if8eaf1df1004280648yd103ea2ckecd59dfb1ceda343@mail.gmail.com"
type="cite">Hi there!
<div><br>
</div>
<div>I'm struggling to solve the following problem. We have an app
with a flex front end that displays some charts, each chart has a link
to download the data displayed in that chart. To do this I tried to
call a rails method that called send_data, but it didn't produce the
expected results. It'd be good if there was an easy way to do this
directly from Flex...</div>
<div><br>
</div>
<div>I've also been trying to follow the steps explained in this <a
moz-do-not-send="true" href="http://flexonrails.net/?p=5">article</a>,
but I'm getting an Invalid Auth token error...</div>
<div><br>
</div>
<div>Does anyone have an idea?</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Jordi</div>
<div><br>
</div>
<div><br>
</div>
<pre wrap="">
<hr class="__postbox_mime_separator" size="4" width="90%">
_______________________________________________
Chat mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a>
</pre>
</blockquote>
</body>
</html>