Ruby on Rails 0.13 Out Today with AJAX Superpowers
Robert J. Berger writes "The Ruby on Rails team announced that "After the longest gap between releases since Rails was made public and after more than 225 fixes and new features, the final major release before the 1.0 milestone has arrived."
This is a major update to what is to many developers
consider the new tool for developing sophisticated interactive database driven web applications. It integrates
backend Model/View/Controller object-oriented model with
AJAX based clients so that the developer can focus on the app and not on the details of basic mechanisms. You really can do much more with much less coding.
The new release adds a completely rewritten visual effects engine, drag-and-drop capability including sortable lists, and autocompleting text fields to Rails. All building on top of an upgraded version of Prototype, the javascript foundation for Ajax in Rails ... Check out the very cool
demos at script.aculo.us."
I've been playing with Rails since september and I've run edge rails (subversion trunk) for about a month while developing my soon-to-be-released rewrite of my site that uses a lot of this Ajax stuff in a user friendly way.
Users can sort the pictures in their galleries by dragging them to the position they want and doubleclick them to hide them (it then becomes 50% transparent). The user always get immediate feedback without reloading the page thanks to Ajax. For translators the site is inline editable. Just doubleclick on a textfield or alt+click on a string to edit it inline. Click "save" and it's changed. Admin stuff is always available but hidden by default in drawers that you can slide in when you need them so you can be logged in as an admin an change any setting, delete posts etc without needing to go to a separate admin page or have a cluttered interface. You don't even have to reload the page in most cases...
All this stuff is damn easy to implement thanks to the wonders of Ruby on Rails and the Prototype framework.
My other account has a 3-digit UID.
wow... I really want to try this... I love the idea of ruby on rails, but all of this client side code is nuts.
Of all the samples, only the shoping cart works at all on Firefox1.04 on solaris. Everything else just does nothing and renders horribly. Even the shoping cart demo fails to render things properly, even when it works.
sigh...
I really really really want to like this... but how is relying on the client to run code properly sane, with all the different clients out there?
Ce n'est pas une signature automatique.
Great. AJAX shopping carts. Will no one learn from the usability problems people found using Flash for such things?
AJAX is great... for applications where the state is not particularly important (i.e., enough to be bookmarked). A product catalog and shopping cart is not one of this type.
Since all these effects are built on top of the Prototype javascript library, you can use them standalone or with any server side language. Just download the effects and the Prototype library (be sure to get the pre-release version) and you should be good to go. Nothing Ruby or Rails specific, but Rails does have some predefined helper functions to make it easier to use the AJAX effects.
-- I take full responsibility for the failure of the project do to my tendency to underestimate your incompetence.
"Ruby is pretty slow at the moment"
Actually, Ruby's quite speedy. It's not the fastest of dynamic languages, but it's certainly on par with PHP/Python in most areas that count. Where it's not, well, that's where the incredibly easy C extension stuff comes in.