Vixiom Axioms

May 1, 2007

ActiveRecord and Flex

Filed under: Flash, Flash Remoting, Flex, Ruby Alastair @ 11:58 am

The majority of work I do is Flash/Flex and Rails so ActiveRecord, which is the M in the Rails MVC, is really the only part of Rails I use. I’ve always wished I could get ‘Rails Lite’ (In this case Camping doesn’t count) and just use ActiveRecord to pass data back and forth. My wish has come true as I found out about RubyAMF (via FlexOnRails). RubyAMF and a database are all you need to use Flash Remoting with Ruby as RubyAMF has it’s own servlet or can integrate with Apache or Lighttpd.

But what if you don’t use Ruby? ActiveRecord is a pattern and not language specific. I’ve been doing some research on a PHP ActiveRecord solution for Flash Remoting because of the speed increases that are possible with AMFPHP 2.0. PHP Doctrine was the closest PHP ActiveRecord implementation I could find to the one in Rails. However, the future of AMFPHP is now up in the air as Patrick Minnault is retiring as a programmer to become a Neuro Scientist! I always knew he was too smart to be a programmer, actually he still supports the NDP in Canada so he can’t be that bright :P

I’m sure WebORB for PHP could be used with PHP Doctrine, maybe if I wish hard enough someone will figure it out for me.

Digg! submit ActiveRecord and Flex to stumbleupon.com submit ActiveRecord and Flex to del.icio.us submit ActiveRecord and Flex to reddit.com Like this post? subscribe to the feed.

3 Comments »

  1. Hey There, Glad I could make some dreams come true with RubyAMF. Please let me know if there is anything you need with RubyAMF - aaron at rubyamf dot org.

    -Aaron

    Comment by Aaron Smith — May 2, 2007 @ 10:16 pm

  2. Hey Aaron, The one other thing I use Rails with Flex for is sending out email. I don’t necessarily think this should be a core part of RubyAMF, but do you have any best practices for adding functionality to RubyAMF?

    thanks,
    Alastair

    Comment by KreeK — May 3, 2007 @ 8:15 am

  3. PHPAMF is gone? WUT? :0…. that sucks! I really hope someone keeps the dream alive……

    Comment by tomo_atlacatl — May 10, 2007 @ 6:33 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image

Powered by WordPress