SWX Ruby: SWX RPC for Ruby on Rails

Swx Ruby Alpha

This is so cool: Jed Hurt has released Alpha 0.1 of SWX Ruby, the Ruby implementation of SWX RPC for Ruby on Rails.

Read more about SWX Ruby.

7 Responses to “SWX Ruby: SWX RPC for Ruby on Rails”


  1. 1 Greg

    Hey all,

    I started to port SWX RPC to .NET (C#).

    I’ve started a blog on tumblr where I’ll be posting updates on my progress.

    check out

    http://swxnet.tumblr.com/

    Greg

  2. 2 aral

    Hi Greg,

    That’s great news. I’ve emailed you :)

  3. 3 Petko

    Oi,

    just wanted to ask, if it will be possible to map Ruby model on AS class (like in WebOrb)

    Peter

  4. 4 Meekish

    Petko,

    I assume you’re referring to typed objects? At this point, both Aral and I have agreed that they’re not a priority.

    But if there is enough demand for it, I (and I’m sure Aral) would be willing to reconsider. Can I ask how you would find them useful?

    (Aral, please correct me if any of my assumptions are incorrect)

  5. 5 Petko

    Meekish,

    well, it’s less coding for me :)
    If i send typed object for example User from flash to rails, and have model User, i just write

    def save_user(user)
    user.save
    end

    and user is saved on back end, because rails know it is User class/model.

    Another example:

    i send array of Users from backend

    def list_users
    @users = User.find(:all)
    end

    and if it comes to flash, i can call functions from User class, add listeners which updates data on change etc.

    I know it is possible to do other way, parse object etc, but i like to write only code which is needed, what makes code better readable.

    Peter

  6. 6 Meekish

    Ahhh, you’re talking about RemoteObjects ( http://flexonrails.net/?p=54 )

    Though I’ve never used RemoteObjects, I see how the functionality could be useful. It wouldn’t have all the rich functionality of a RemoteObject, but an ActiveResource consuming library written in AS would have a lot of the same benefits.

    It seems feasible to port Jester ( http://thoughtbot.com/projects/jester ) to AS and use SWX as the data exchange format. Though I don’t think it would ever end up in SWX Ruby core (I strongly agree with Aral’s stance on small SWX implementations), perhaps it could be offered as an add-on?

    All my energies over the coming months will be spent getting SWX Ruby to 1.0. But if you’re interested in tackling something like this, feel free to drop by the Google group ( http://groups.google.com/group/swxruby ) and I’ll be glad to help wherever possible.

    Any thoughts, Aral?

  1. 1 Just Flashing - Today’s Top Blog Posts on Flash - Powered by SocialRank

Leave a Reply




Bad Behavior has blocked 3570 access attempts in the last 7 days.