<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Flash Remoting for Rails Tutorial 2 - Data Swings Both Ways</title>
	<link>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/</link>
	<description>The Vixiom Blog :: Flex &#38; Flash on Rails</description>
	<pubDate>Thu, 28 Aug 2008 09:08:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: MaxUp Blog&#8217;s &#124; &#187; Links sobre Flex + Ruby On Rails</title>
		<link>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-39791</link>
		<dc:creator>MaxUp Blog&#8217;s &#124; &#187; Links sobre Flex + Ruby On Rails</dc:creator>
		<pubDate>Fri, 28 Dec 2007 15:35:56 +0000</pubDate>
		<guid>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-39791</guid>
		<description>[...] http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/ [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] <a href="http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/" rel="nofollow">http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/</a> [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias</title>
		<link>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-32985</link>
		<dc:creator>Matthias</dc:creator>
		<pubDate>Wed, 10 Oct 2007 11:28:50 +0000</pubDate>
		<guid>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-32985</guid>
		<description>you can download my update here :

www.mat3d.com/Tutorials/todoapp.zip</description>
		<content:encoded><![CDATA[<p>you can download my update here :</p>
<p><a href="http://www.mat3d.com/Tutorials/todoapp.zip" rel="nofollow">http://www.mat3d.com/Tutorials/todoapp.zip</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias</title>
		<link>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-32982</link>
		<dc:creator>Matthias</dc:creator>
		<pubDate>Wed, 10 Oct 2007 08:28:59 +0000</pubDate>
		<guid>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-32982</guid>
		<description>Hi again , 

i extendet the example so that you have full crud functionallity . 
Its pretty funny if you see how easy it is to delete a Todo aswell :P 

require 'weborb/context'
require 'rbconfig'

class TodoService
  
  # getTodos for remoting
  def getTodos
    getTodoLists
  end

  def getDeleteTodos
      return todos
    getTodoLists
  end  
  # toggleTodo for for remoting
  def toggleTodo(id)
    todoToToggle = Todo.find(id)
    # set to true(1) if false(0) or vice versa (1 - 0 = 1, 1 - 1 = 0)
    todoToToggle.done = 1 - todoToToggle.done
    # if save send new data back to Flash
    if todoToToggle.save
      getTodoLists
    end
  end

  def deleteTodo(id)
    Todo.delete(id)
    todoToDelete = Todo.find(id)
    if todoToDelete.delete
     getTodos
      end
end
  # toggleTodo for for remoting
  def addTodo(title)
    todoToAdd = Todo.new
    todoToAdd.title = title
    # if save send new data back to Flash
    if todoToAdd.save
      getTodoLists
    end
  end
  # get the todo lists (used throughout)
  def getTodoLists
    # putting lists in a hash as we have two sets of data
    todos = Hash.new
    todos["not_done"] = Todo.find(:all, :conditions =&#62; ["done LIKE ?", false])
    todos["done"] = Todo.find(:all, :conditions =&#62; ["done LIKE ?", true])
    return todos
  end
  
end</description>
		<content:encoded><![CDATA[<p>Hi again , </p>
<p>i extendet the example so that you have full crud functionallity .<br />
Its pretty funny if you see how easy it is to delete a Todo aswell :P </p>
<p>require &#8216;weborb/context&#8217;<br />
require &#8216;rbconfig&#8217;</p>
<p>class TodoService</p>
<p>  # getTodos for remoting<br />
  def getTodos<br />
    getTodoLists<br />
  end</p>
<p>  def getDeleteTodos<br />
      return todos<br />
    getTodoLists<br />
  end<br />
  # toggleTodo for for remoting<br />
  def toggleTodo(id)<br />
    todoToToggle = Todo.find(id)<br />
    # set to true(1) if false(0) or vice versa (1 - 0 = 1, 1 - 1 = 0)<br />
    todoToToggle.done = 1 - todoToToggle.done<br />
    # if save send new data back to Flash<br />
    if todoToToggle.save<br />
      getTodoLists<br />
    end<br />
  end</p>
<p>  def deleteTodo(id)<br />
    Todo.delete(id)<br />
    todoToDelete = Todo.find(id)<br />
    if todoToDelete.delete<br />
     getTodos<br />
      end<br />
end<br />
  # toggleTodo for for remoting<br />
  def addTodo(title)<br />
    todoToAdd = Todo.new<br />
    todoToAdd.title = title<br />
    # if save send new data back to Flash<br />
    if todoToAdd.save<br />
      getTodoLists<br />
    end<br />
  end<br />
  # get the todo lists (used throughout)<br />
  def getTodoLists<br />
    # putting lists in a hash as we have two sets of data<br />
    todos = Hash.new<br />
    todos[&#8221;not_done&#8221;] = Todo.find(:all, :conditions =&gt; [&#8221;done LIKE ?&#8221;, false])<br />
    todos[&#8221;done&#8221;] = Todo.find(:all, :conditions =&gt; [&#8221;done LIKE ?&#8221;, true])<br />
    return todos<br />
  end</p>
<p>end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Molly</title>
		<link>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-29939</link>
		<dc:creator>Molly</dc:creator>
		<pubDate>Mon, 06 Aug 2007 22:28:04 +0000</pubDate>
		<guid>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-29939</guid>
		<description>Hmm... thanks for the response, Alastair.  I checked out WebOrb in a fresh app, and still had problems (send failed in all examples).  Is there any reason why the server would interfere with the way information is sent between flash and rails?  Particularly, why request.raw_post would come back as nil into rails?  


Has anyone had any experience with fixing something like this?  There are people all over the midnightcoders forum with similar issues, and not many viable solutions.  If anyone has insight, you might have an army of people indebted to you... :)

Molly</description>
		<content:encoded><![CDATA[<p>Hmm&#8230; thanks for the response, Alastair.  I checked out WebOrb in a fresh app, and still had problems (send failed in all examples).  Is there any reason why the server would interfere with the way information is sent between flash and rails?  Particularly, why request.raw_post would come back as nil into rails?  </p>
<p>Has anyone had any experience with fixing something like this?  There are people all over the midnightcoders forum with similar issues, and not many viable solutions.  If anyone has insight, you might have an army of people indebted to you&#8230; :)</p>
<p>Molly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alastair</title>
		<link>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-29821</link>
		<dc:creator>Alastair</dc:creator>
		<pubDate>Fri, 03 Aug 2007 20:19:23 +0000</pubDate>
		<guid>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-29821</guid>
		<description>Hi Molly,

The error you're getting is on the server side, all the Flash stuff ends up packaged in the SWF file. If it works locally then something on the remote server is different than your local version, this could be one of many things; a different version of Rails, a different ruby gem on the server (or a missing gem).

When I get problems like this I try to get weborb working on the server in a fresh Rails app just to make sure it's not my code messing stuff up :)

Follow this example http://themidnightcoders.com/weborb/rubyonrails/gettingstarted.htm up until they say to check http://localhost:3000/examples/main.html , that's the weborb test suite, if it runs in a clean rails app you know weborb can work on your server and the problem is in your code.

Hope that helps, good luck!</description>
		<content:encoded><![CDATA[<p>Hi Molly,</p>
<p>The error you&#8217;re getting is on the server side, all the Flash stuff ends up packaged in the SWF file. If it works locally then something on the remote server is different than your local version, this could be one of many things; a different version of Rails, a different ruby gem on the server (or a missing gem).</p>
<p>When I get problems like this I try to get weborb working on the server in a fresh Rails app just to make sure it&#8217;s not my code messing stuff up :)</p>
<p>Follow this example <a href="http://themidnightcoders.com/weborb/rubyonrails/gettingstarted.htm" rel="nofollow">http://themidnightcoders.com/weborb/rubyonrails/gettingstarted.htm</a> up until they say to check <a href="http://localhost:3000/examples/main.html" rel="nofollow">http://localhost:3000/examples/main.html</a> , that&#8217;s the weborb test suite, if it runs in a clean rails app you know weborb can work on your server and the problem is in your code.</p>
<p>Hope that helps, good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Molly</title>
		<link>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-29814</link>
		<dc:creator>Molly</dc:creator>
		<pubDate>Fri, 03 Aug 2007 17:49:27 +0000</pubDate>
		<guid>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-29814</guid>
		<description>Hi there,

Thanks for this tutorial - I learned a great deal, and have things working great locally.  I'm having the same problem as Mina, however - "I got a NoMethodError in WeborbController#index
and exactly, request.raw_post.each_byte {&#124;byte&#124; input.push byte } is the problem", but only when I upload the interface through my hosting service (Dreamhost).  could this be a server-side issue?  I don't know if there are server-side components in the Flash Remoting Components...


anyone else encounter this or try it on a 3rd party hosting service?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>Thanks for this tutorial - I learned a great deal, and have things working great locally.  I&#8217;m having the same problem as Mina, however - &#8220;I got a NoMethodError in WeborbController#index<br />
and exactly, request.raw_post.each_byte {|byte| input.push byte } is the problem&#8221;, but only when I upload the interface through my hosting service (Dreamhost).  could this be a server-side issue?  I don&#8217;t know if there are server-side components in the Flash Remoting Components&#8230;</p>
<p>anyone else encounter this or try it on a 3rd party hosting service?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rich</title>
		<link>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-20529</link>
		<dc:creator>rich</dc:creator>
		<pubDate>Tue, 06 Mar 2007 23:31:30 +0000</pubDate>
		<guid>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-20529</guid>
		<description>if theres a way to call rails services with actionscript 3 using NetConnect classes, please tell!  I'm not sure what adobe's plans are for maintaining the remoting classes, but apparently they've included some similar functionality.</description>
		<content:encoded><![CDATA[<p>if theres a way to call rails services with actionscript 3 using NetConnect classes, please tell!  I&#8217;m not sure what adobe&#8217;s plans are for maintaining the remoting classes, but apparently they&#8217;ve included some similar functionality.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KreeK</title>
		<link>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-20180</link>
		<dc:creator>KreeK</dc:creator>
		<pubDate>Mon, 26 Feb 2007 17:59:56 +0000</pubDate>
		<guid>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-20180</guid>
		<description>Matthias,

Yes I should change the font the code tags use, I've even had that problem when copying stuff from my own tutorials!

thanks,
Alastair</description>
		<content:encoded><![CDATA[<p>Matthias,</p>
<p>Yes I should change the font the code tags use, I&#8217;ve even had that problem when copying stuff from my own tutorials!</p>
<p>thanks,<br />
Alastair</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias</title>
		<link>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-20178</link>
		<dc:creator>Matthias</dc:creator>
		<pubDate>Mon, 26 Feb 2007 17:54:00 +0000</pubDate>
		<guid>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-20178</guid>
		<description>Ok , 

thnx alot for the very nice remoting tutorial i found out the solution myself :

in the case that you dont want to use the sourcefiles supplied @ the beginning of the tutorial and you copy and paste the Code out of the sourceview you need to replace the apostrophies in the .rb files maybee they are bitwise wrong from the css view :P 

thnx alot m@</description>
		<content:encoded><![CDATA[<p>Ok , </p>
<p>thnx alot for the very nice remoting tutorial i found out the solution myself :</p>
<p>in the case that you dont want to use the sourcefiles supplied @ the beginning of the tutorial and you copy and paste the Code out of the sourceview you need to replace the apostrophies in the .rb files maybee they are bitwise wrong from the css view :P </p>
<p>thnx alot m@</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias</title>
		<link>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-20156</link>
		<dc:creator>Matthias</dc:creator>
		<pubDate>Mon, 26 Feb 2007 00:51:56 +0000</pubDate>
		<guid>http://blog.vixiom.com/2006/08/26/flash-remoting-for-rails-tutorial-data-swings-both-ways/#comment-20156</guid>
		<description>Hi , 

i am havin a Error too . In the Flash Ide i get the trace 
"// remoting - getting todos" but nothing appears and the webrick is running ?.
 Since i am using amfPhp Remoting alot i still stick to the mx Remoting Classes . But i already installed the new Remoting Components . 
Does anybody knows why ?? 

please give me a hint 

thanks for the Tutorial and the help upfront 

( btw : why did you deleted my post before ? )</description>
		<content:encoded><![CDATA[<p>Hi , </p>
<p>i am havin a Error too . In the Flash Ide i get the trace<br />
&#8220;// remoting - getting todos&#8221; but nothing appears and the webrick is running ?.<br />
 Since i am using amfPhp Remoting alot i still stick to the mx Remoting Classes . But i already installed the new Remoting Components .<br />
Does anybody knows why ?? </p>
<p>please give me a hint </p>
<p>thanks for the Tutorial and the help upfront </p>
<p>( btw : why did you deleted my post before ? )</p>
]]></content:encoded>
	</item>
</channel>
</rss>
