# Anyone using Flex + Rails?

**URL:** <https://www.ruby-forum.com/t/anyone-using-flex-rails/106892>\
**Category:** Rails\
**Created:** [June 15, 2007, 3:55am UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892 "2007-06-15T03:55:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 15, 2007, 3:55am UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/1 "2007-06-15T03:55:15Z")

</div>

Hey all,

Is anyone here using Flex with Rails?

Robert D.

> **[My blog](https://www.techcfl.com)**
>
> Just another WordPress site

> **[Discover Top Website Tutorials & Guides – Key Medium](https://keymedium.com/category/tutorials-guides/)**
>
> These website tutorials and ultimate guides serve as a resource to help you make informed decisions on website design, development, and redesign projects.

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 15, 2007, 4:09am UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/2 "2007-06-15T04:09:20Z")

</div>

what are you looking to do with flex?  
I haven’t started flex with rails but I use it with coldfusion.

[http://www.google.com/search?q=flex+ruby+on+rails](http://www.google.com/search?q=flex+ruby+on+rails)

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 15, 2007, 4:52am UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/3 "2007-06-15T04:52:04Z")

</div>

Robert D. wrote:

> Hey all,
> 
> Is anyone here using Flex with Rails?
> 
> Robert D.  
> [http://www.techcfl.com](http://www.techcfl.com)  
> [http://www.railsforall.org](http://www.railsforall.org)

I have this page bookmarked from the Adobe Developer Center:

[http://www.adobe.com/devnet/flex/articles/flex2\_rails.html](http://www.adobe.com/devnet/flex/articles/flex2_rails.html)

Don’t currently do anything with Flex and Rails…

Mike

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 15, 2007, 8:38am UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/4 "2007-06-15T08:38:42Z")

</div>

Yeah you just pass XML back and forth. I haven’t built flex stuff  
myself but I’ve done a bit of work building Ruby on Rails backends for  
Flex apps. It’s dead simple.

Cam

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 15, 2007, 9:18am UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/5 "2007-06-15T09:18:45Z")

</div>

This is little of the main issue here but a little tip from experience  
regarding the data flow between Flex and server side.  
We develop a Flex client that is very extensive on data consumption.  
Our experience is that among all tested protocols the JSON is the  
fastest one.  
The Xml is OK but transformation from it to Flex objects is better if  
you use JSON.  
We have our server side in C#, Php and naturally in Rails.

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 15, 2007, 5:14am UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/6 "2007-06-15T05:14:25Z")

</div>

John,

Thanks for the quick response. I am looking to build a complete UI in  
Flex and the backend in Rails. Any links you can provide are welcomed.  
Thanks for the point in the right direction.

Robert

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 15, 2007, 1:11pm UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/7 "2007-06-15T13:11:38Z")

</div>

Hi Robert,

yes I am 🙂  
It’s straight forward and with Flex as GUI ist really easy to have a  
RichInternetApplication  
with features that DHTML/JavaScript simply can not achieve.

Best regards  
Chris

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 15, 2007, 3:21pm UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/8 "2007-06-15T15:21:57Z")

</div>

and then to take it one step farther. . .

[http://labs.adobe.com/technologies/air/](http://labs.adobe.com/technologies/air/)  
“Adobe(r) AIR™, formerly code-named Apollo, is a cross-operating  
system runtime that allows developers to use their existing web  
development skills to build and deploy rich Internet applications to  
the desktop.”

John

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 15, 2007, 3:47pm UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/9 "2007-06-15T15:47:01Z")

</div>

Thank you all for your help. I have visited all provided links, and  
have been looking into AIR as well. I have found a great (and  
inexpensive) PDF as well. Here is the link to it (http://  
[www.flexiblerails.com/](http://www.flexiblerails.com/)). Thanks again.

Robert D.

> **[My blog](https://www.techcfl.com)**
>
> Just another WordPress site

> **[Discover Top Website Tutorials & Guides – Key Medium](https://keymedium.com/category/tutorials-guides/)**
>
> These website tutorials and ultimate guides serve as a resource to help you make informed decisions on website design, development, and redesign projects.

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 15, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/10 "2007-06-15T21:19:59Z")

</div>

There’s also a pretty nice plugin for Rails - WebOrb… does a lot of  
the  
translation. I actually worked with one of the developers on a project  
last  
and he’s very cool.

[http://www.themidnightcoders.com/weborb/rubyonrails/index.htm](http://www.themidnightcoders.com/weborb/rubyonrails/index.htm)

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 16, 2007, 12:12am UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/11 "2007-06-16T00:12:18Z")

</div>

Thanks Brian. I hae seen WebOrb before - it looked pricey for  
commercial applications.

- Robert

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 16, 2007, 12:41am UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/12 "2007-06-16T00:41:23Z")

</div>

Yeah… but there’s an open-source version, at least there was last time  
I  
checked,

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 15, 2007, 2:07pm UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/13 "2007-06-15T14:07:45Z")

</div>

If you haven’t already found it, there is the Google group  
[http://groups.google.com/group/adobe-rubyonrails-ria-sdk](http://groups.google.com/group/adobe-rubyonrails-ria-sdk)

The blog [http://flexonrails.net/](http://flexonrails.net/) has some good info too.

Good luck.

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 16, 2007, 6:53pm UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/14 "2007-06-16T18:53:10Z")

</div>

Hi Robert,

Look at [flexonrails.net](http://flexonrails.net) for WebORB articles, and at  
[http://www.themidnightcoders.com/weborb/rubyonrails/index.htm](http://www.themidnightcoders.com/weborb/rubyonrails/index.htm).

-Peter

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 16, 2007, 3:47pm UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/15 "2007-06-16T15:47:42Z")

</div>

Do you have a link. That would rock.

Also, when receiving XML from a RESTful Rails controller, is there a  
certain format that Flex expects? I am having issues and Rails is  
returning the proper XML, however I am not sure that Flex is getting  
it properly formatted. Any help would be great. Thanks.

Robert

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 16, 2007, 9:17pm UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/16 "2007-06-16T21:17:35Z")

</div>

Is WebORB a “better” way to go than accessing Rails via REST?

- Robert

On Jun 16, 12:51 pm, “Peter A.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 17, 2007, 1:31am UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/17 "2007-06-17T01:31:08Z")

</div>

Robert D. \<robertonrails@…\> writes:

> On Jun 14, 10:09 pm, “John I.” \<john.ivan…@…\> wrote:
> 
> > > Is anyone here using Flex with Rails?
> > 
> > > Robert D.  
> > > [http://www.techcfl.com](http://www.techcfl.com)  
> > > [http://www.railsforall.org](http://www.railsforall.org)
> 
> >

Hi Robert,

yes, I am about to build a an app with these components (Flex and Rails)  
and the first experiences are good 🙂  
It’s easy to combine them with Rails restful features and with Flex  
HTTPRequest  
and the events.  
Seems to me a prefect combination because you can do much more on the  
GUI side.

Best regards  
Chris

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 16, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/18 "2007-06-16T21:40:38Z")

</div>

It is different.

Whether it is “better” depends on your requirements. REST lets you  
support traditional HTML views (and HTML + AJAX) with the same Rails  
controllers that talk to Flex (typically with XML). Note, however,  
that the Flex + RESTful Rails combination is not tied to XML: you can  
also use JSON (see

> **[Tutorial : Using JSON with Flex 2 and ActionScript 3](https://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/)**
>
> Tutorial : Using JSON with Flex 2 and ActionScript 3 Tuesday, March 28, 2006 One of the little gems you will find in the open source ActionScript 3 libraries that we released on labs, is the JSON class found in the corelib library. This class,...

for details). In my Flexible Rails book [[www.flexiblerails.com](http://www.flexiblerails.com)] I am  
only using XML for now with RESTful controllers, but I am considering  
adding an iteration which replaces the XML with JSON, just to show the  
difference. Furthermore, it should be fairly straightforward to  
implement support for YAML as well.

WebORB uses AMF, which is a binary protocol. There are pros and cons  
to this. Also, WebORB is not MIT-licensed [like Rails] or  
LGPL-licensed [like JBoss]–it is currently available under two  
licenses: a commercial license and the GPL. Whether you need a  
commercial license or can use the GPL version depends on what you are  
doing. The GPL is not the same thing as the LGPL. I’m not a lawyer,  
so I won’t comment further.

-Peter

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 18, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/19 "2007-06-18T22:18:18Z")

</div>

Thanks all. So far, Peter’s book is rockin the house with Flex +  
Rails. Now I just need some more Flex training and I am off to the  
races.

Robert D.

> **[My blog](https://www.techcfl.com/)**
>
> Just another WordPress site

> **[Discover Top Website Tutorials & Guides – Key Medium](https://keymedium.com/category/tutorials-guides/)**
>
> These website tutorials and ultimate guides serve as a resource to help you make informed decisions on website design, development, and redesign projects.

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [June 18, 2007, 11:17pm UTC](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892/20 "2007-06-18T23:17:27Z")

</div>

Nice! Thanks.

[Next page](https://www.ruby-forum.com/t/anyone-using-flex-rails/106892.md?page=2)
