<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Ruby on Rails with Flex</title>
	<atom:link href="http://www.unitedmindset.com/jonbcampos/2009/05/30/ruby-on-rails-with-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unitedmindset.com/jonbcampos/2009/05/30/ruby-on-rails-with-flex/</link>
	<description>Blog on technology and software development typically around Adobe Flash, Flex, and AIR.</description>
	<lastBuildDate>Wed, 25 Jan 2012 11:21:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Flex learner &#124; Blog &#124; Ruby on Rails with Flex &#124; UnitedMindset</title>
		<link>http://www.unitedmindset.com/jonbcampos/2009/05/30/ruby-on-rails-with-flex/#comment-788</link>
		<dc:creator>Flex learner &#124; Blog &#124; Ruby on Rails with Flex &#124; UnitedMindset</dc:creator>
		<pubDate>Thu, 13 Jan 2011 11:58:10 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=300#comment-788</guid>
		<description>[...] See more here: Ruby on Rails with Flex &#124; UnitedMindset [...]</description>
		<content:encoded><![CDATA[<p>[...] See more here: Ruby on Rails with Flex | UnitedMindset [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Campos</title>
		<link>http://www.unitedmindset.com/jonbcampos/2009/05/30/ruby-on-rails-with-flex/#comment-108</link>
		<dc:creator>Jonathan Campos</dc:creator>
		<pubDate>Wed, 22 Dec 2010 15:19:55 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=300#comment-108</guid>
		<description>@Samuel
You&#039;re right that I didn&#039;t embed the SWF in the actual app, I was planning on having a different path for the app from the services but great points. Thanks for the comment.</description>
		<content:encoded><![CDATA[<p>@Samuel<br />
You&#8217;re right that I didn&#8217;t embed the SWF in the actual app, I was planning on having a different path for the app from the services but great points. Thanks for the comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: samuelgilman</title>
		<link>http://www.unitedmindset.com/jonbcampos/2009/05/30/ruby-on-rails-with-flex/#comment-107</link>
		<dc:creator>samuelgilman</dc:creator>
		<pubDate>Wed, 22 Dec 2010 01:08:16 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=300#comment-107</guid>
		<description>I got this up and going in a snap with two minor adjustments. I had to add map.resources :post  to the routes file and I had to embed the .swf in a page so I could actually use it.</description>
		<content:encoded><![CDATA[<p>I got this up and going in a snap with two minor adjustments. I had to add map.resources :post  to the routes file and I had to embed the .swf in a page so I could actually use it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maria Carreiro Varão</title>
		<link>http://www.unitedmindset.com/jonbcampos/2009/05/30/ruby-on-rails-with-flex/#comment-106</link>
		<dc:creator>Maria Carreiro Varão</dc:creator>
		<pubDate>Fri, 10 Sep 2010 16:11:32 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=300#comment-106</guid>
		<description>Worked more than another way, perhaps even because of Ruby (I&#039;m using version 2.3.8).
Modifications:

Another function I created in Ruby:
  def update
    @categoria = Categoria.find(params[:id])
    respond_to do &#124;format&#124;
      if @categoria.update_attributes(params[0])
        format.amf { render :amf =&gt; @categoria }
      else
        format.amf { render :amf =&gt; FaultObject.new(@categoria.errors.full_messages.to_a.join(&quot;\n&quot;)) }
      end
    end
  end

And I modified in Flex:

private function onEditCategoria(event:MouseEvent):void

{

var categoria:CategoriaVO = categoriasDG.selectedItem as CategoriaVO;

categoria.descricao = descricao.text;

categoriaRO.getOperation(&quot;update&quot;).send({id:categoria.id,descricao:categoria.descricao});
//Passing as a parameter each field instead of an object.
}</description>
		<content:encoded><![CDATA[<p>Worked more than another way, perhaps even because of Ruby (I&#8217;m using version 2.3.8).<br />
Modifications:</p>
<p>Another function I created in Ruby:<br />
  def update<br />
    @categoria = Categoria.find(params[:id])<br />
    respond_to do |format|<br />
      if @categoria.update_attributes(params[0])<br />
        format.amf { render :amf =&gt; @categoria }<br />
      else<br />
        format.amf { render :amf =&gt; FaultObject.new(@categoria.errors.full_messages.to_a.join(&#8220;\n&#8221;)) }<br />
      end<br />
    end<br />
  end</p>
<p>And I modified in Flex:</p>
<p>private function onEditCategoria(event:MouseEvent):void</p>
<p>{</p>
<p>var categoria:CategoriaVO = categoriasDG.selectedItem as CategoriaVO;</p>
<p>categoria.descricao = descricao.text;</p>
<p>categoriaRO.getOperation(&#8220;update&#8221;).send({id:categoria.id,descricao:categoria.descricao});<br />
//Passing as a parameter each field instead of an object.<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Campos</title>
		<link>http://www.unitedmindset.com/jonbcampos/2009/05/30/ruby-on-rails-with-flex/#comment-105</link>
		<dc:creator>Jonathan Campos</dc:creator>
		<pubDate>Thu, 09 Sep 2010 14:05:10 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=300#comment-105</guid>
		<description>@Maria I&#039;m not sure what is wrong at this point based on what I am seeing. It looks like the issue is with Ruby but I can&#039;t tell where.</description>
		<content:encoded><![CDATA[<p>@Maria I&#8217;m not sure what is wrong at this point based on what I am seeing. It looks like the issue is with Ruby but I can&#8217;t tell where.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maria Carreiro Varão</title>
		<link>http://www.unitedmindset.com/jonbcampos/2009/05/30/ruby-on-rails-with-flex/#comment-104</link>
		<dc:creator>Maria Carreiro Varão</dc:creator>
		<pubDate>Thu, 09 Sep 2010 13:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=300#comment-104</guid>
		<description>I put “///” in place of “&gt;&lt;”.</description>
		<content:encoded><![CDATA[<p>I put “///” in place of “&gt;&lt;”.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maria Carreiro Varão</title>
		<link>http://www.unitedmindset.com/jonbcampos/2009/05/30/ruby-on-rails-with-flex/#comment-103</link>
		<dc:creator>Maria Carreiro Varão</dc:creator>
		<pubDate>Thu, 09 Sep 2010 13:20:28 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=300#comment-103</guid>
		<description>Again

Processing CategoriasController#save (for 127.0.0.1 at 2010-09-09 10:16:54) [POST]
  Parameters: {0=&gt;{&quot;categoria&quot;=&gt;#///Categoria id: 38, descricao: &quot;categoria1.1&quot;, created_at: nil, updated_at: nil///}, &quot;categoria&quot;=&gt;#///Categoria id: 38, descricao: &quot;categoria1.1&quot;, created_at: nil, updated_at: nil///}
  [4;35;1mSQL (0.0ms)[0m   [0mBEGIN[0m
  [4;36;1mSQL (15.6ms)[0m   [0;1mCOMMIT[0m
Completed in 16ms (DB: 16) &#124; 200 [http://localhostcategorias/save]
Sending data
Completed in 62ms (View: 0, DB: 0) &#124; 200 OK [http://localhostcategorias/save]
---------------------------------------
I put &quot;///&quot; in place of &quot;&quot;. Why was giving problem when sending the comment.</description>
		<content:encoded><![CDATA[<p>Again</p>
<p>Processing CategoriasController#save (for 127.0.0.1 at 2010-09-09 10:16:54) [POST]<br />
  Parameters: {0=&gt;{&#8220;categoria&#8221;=&gt;#///Categoria id: 38, descricao: &#8220;categoria1.1&#8243;, created_at: nil, updated_at: nil///}, &#8220;categoria&#8221;=&gt;#///Categoria id: 38, descricao: &#8220;categoria1.1&#8243;, created_at: nil, updated_at: nil///}<br />
  [4;35;1mSQL (0.0ms)[0m   [0mBEGIN[0m<br />
  [4;36;1mSQL (15.6ms)[0m   [0;1mCOMMIT[0m<br />
Completed in 16ms (DB: 16) | 200 [http://localhostcategorias/save]<br />
Sending data<br />
Completed in 62ms (View: 0, DB: 0) | 200 OK [http://localhostcategorias/save]<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
I put &#8220;///&#8221; in place of &#8220;&#8221;. Why was giving problem when sending the comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Campos</title>
		<link>http://www.unitedmindset.com/jonbcampos/2009/05/30/ruby-on-rails-with-flex/#comment-102</link>
		<dc:creator>Jonathan Campos</dc:creator>
		<pubDate>Wed, 08 Sep 2010 01:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=300#comment-102</guid>
		<description>@Maria, are you sure that your save command is sending the remoteobject?</description>
		<content:encoded><![CDATA[<p>@Maria, are you sure that your save command is sending the remoteobject?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maria Carreiro Varão</title>
		<link>http://www.unitedmindset.com/jonbcampos/2009/05/30/ruby-on-rails-with-flex/#comment-101</link>
		<dc:creator>Maria Carreiro Varão</dc:creator>
		<pubDate>Tue, 07 Sep 2010 22:56:18 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=300#comment-101</guid>
		<description>Processing CategoriasController#save (for 127.0.0.1 at 2010-09-07 19:51:52) [POST]
  Parameters: {0=&gt;{&quot;categoria&quot;=&gt;#}, &quot;categoria&quot;=&gt;#}
  [4;36;1mSQL (0.0ms)[0m   [0;1mBEGIN[0m
  [4;35;1mSQL (0.0ms)[0m   [0mCOMMIT[0m
Completed in 0ms (DB: 0) &#124; 200 [http://localhostcategorias/save]
Sending data
Completed in 62ms (View: 0, DB: 0) &#124; 200 OK [http://localhostcategorias/save]</description>
		<content:encoded><![CDATA[<p>Processing CategoriasController#save (for 127.0.0.1 at 2010-09-07 19:51:52) [POST]<br />
  Parameters: {0=&gt;{&#8220;categoria&#8221;=&gt;#}, &#8220;categoria&#8221;=&gt;#}<br />
  [4;36;1mSQL (0.0ms)[0m   [0;1mBEGIN[0m<br />
  [4;35;1mSQL (0.0ms)[0m   [0mCOMMIT[0m<br />
Completed in 0ms (DB: 0) | 200 [http://localhostcategorias/save]<br />
Sending data<br />
Completed in 62ms (View: 0, DB: 0) | 200 OK [http://localhostcategorias/save]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maria Carreiro Varão</title>
		<link>http://www.unitedmindset.com/jonbcampos/2009/05/30/ruby-on-rails-with-flex/#comment-100</link>
		<dc:creator>Maria Carreiro Varão</dc:creator>
		<pubDate>Tue, 07 Sep 2010 22:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=300#comment-100</guid>
		<description>Log:
Processing CategoriasController#save (for 127.0.0.1 at 2010-09-07 19:51:52) [POST]
  Parameters: {0=&gt;{&quot;categoria&quot;=&gt;#}, &quot;categoria&quot;=&gt;#}
  [4;36;1mSQL (0.0ms)[0m   [0;1mBEGIN[0m
  [4;35;1mSQL (0.0ms)[0m   [0mCOMMIT[0m
Completed in 0ms (DB: 0) &#124; 200 [http://localhostcategorias/save]
Sending data
Completed in 62ms (View: 0, DB: 0) &#124; 200 OK [http://localhostcategorias/save]
----------------------------------------End Log-------------------------------------------------------------------
Between the BEGIN and COMMIT is not nothing.</description>
		<content:encoded><![CDATA[<p>Log:<br />
Processing CategoriasController#save (for 127.0.0.1 at 2010-09-07 19:51:52) [POST]<br />
  Parameters: {0=&gt;{&#8220;categoria&#8221;=&gt;#}, &#8220;categoria&#8221;=&gt;#}<br />
  [4;36;1mSQL (0.0ms)[0m   [0;1mBEGIN[0m<br />
  [4;35;1mSQL (0.0ms)[0m   [0mCOMMIT[0m<br />
Completed in 0ms (DB: 0) | 200 [http://localhostcategorias/save]<br />
Sending data<br />
Completed in 62ms (View: 0, DB: 0) | 200 OK [http://localhostcategorias/save]<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-End Log&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Between the BEGIN and COMMIT is not nothing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

