2007/7/31
2007/7/28
massage: A SPA plugin for Rails
SPA Stands for Single Page Application, it's a concept that totally depends on AJAX. We just made an Rails controller extension that makes it so easy to do spa, it's called: massage. (We are really enjoying it when the name feels just right, aren't we.)
The massage project is now on Rubyforge. To try it, first you would need to install it as a Rails plugin like this:
script/plugin install http://massage.rubyforge.org/svn/trunk/
Then, in the controller that you want to make it work like SPA, add:
spa :only => [:index, :settings] # or :except => [...]
This would make index and settings actions work just right for both xhr and non-xhr. Non-XHR would show the page just like it was, and it'll work if you change those calls to link_to to link_to_remote too. By default, it uses RJS to update an element with id "content" (better to be a div for best look). If you need to change it to, say, "my-spa-arena", you can say:
spa :only => [:index, :settings], :update_element => "my-spa-arena"
And of course, make sure there's is such an element inside your layout, otherwise RJS would just pop-up an error message.
massage project is still at bleeding edge, if you find it broken please contact us, you can leave comments here.
2007/7/11
Chatlino 0.10 Released
After months of development, we're very thrilled to release our humble work of this simple Rails Application: Chatlino. It's an OpenID-based Chatroom application. Please download Chatlino from Chatlino Google code project page, and give it a try.
Chatlino started as a sub-project of a production website YouHolder. It's an open source counter-part of the Chatroom component of YouHolder. We appreciate ICE Technology for providing this great opportunity to support the development of free software / open source projects, and to re-use our development results in those projects to make this fully-functional production web 2.0 website. It's a nice positive feedback between commercial websites and open-source projects that we'd like to see.
This initial release of Chatlino is by default, using Juggernaut as its push solution. You may re-configure it to use iPush, which dramaticly improves the performance of message delivery, and capacity. Please also visit Push4Free and ICE Technology for more information about iPush Technology.
This initial release is still in it's early, bleeding edge. Please don't hestitate to send us comments so we can improve it in the way you like. Or you can join our project development directly, to embrace all the pros of co-developing open source projects .