Category Archives: Ruby on Rails

Flex RubyAMF Screencasts

There are some new RubyAMF screencasts up, Aaron Smith walks you through tutorials on…
Flex with stand-alone RubyAMF
Flex with the RubyAMF Rails plug-in
Flash and authentication
Flash and custom fault objects
RubyAMF is also now 1.2 with respond_to functionality, so you can use one controller action to return anything your heart desires RHTML, AMF, XML, JSON you name it.
def [...]

RubyAMF is 1.0

RubyAMF now can be used as a Rails plugin or you can run it as a Mongrel process. There’s a nice screencast on Rails integration here.
The one-man RubyAMF show that is Aaron Smith also has a Super Simple Remoting class to get you up and running super simply.
Ruby has gone from no AMF support to [...]

Rails helper for SWFObject

SWFObject (formally know as FlashObject) is a javascript file that unobtrusively embeds flash in a web page. It works by replacing a holder div with Flash content, if the end user doesn’t have Flash or the targeted Flash player SWFObject will ‘fail’ silently and keep the original div. Here’s a Rails helper that let’s you [...]

Rails on a Media Temple (dv) server

Tom at the wishlisting.com blog has a comprehensive tutorial on setting up Ruby on Rails (with a load balancer and Rmagick) on a Media Temple (dv) server. He deserves praise for installing ImageMagick without a package manager, which can turn into a marathon event of yak-shaving.

VPS Tutorials

Found a great set of tutorials for setting up a VPS. The tutorials focus on SliceHost but could be used on most VPS hosts that you build from scratch. The best part about the tutorials is that they don’t assume you’re a Linux geek, the first tutorial is an intro to the command line. The [...]

Stop uploaded files getting ‘deleted’ with Capistrano

Here’s how to stop your site’s uploads or other static file directories disappering after doing a ‘cap deploy’ with Capistrano. Capistrano is actually behaving exactly as it should. The problem is that the ‘uploads’ directory is being left behind in release purgatory while the other files happily move on up to the castle in the [...]

Flash Remoting for Django

It took a little while longer than Flash Remoting for Rails to come out but there’s now a Remoting implementation for Django. Not yet 1.0 but then neither is Django! (officially, it might as well be)
One of the reasons I choose Rails over Django was Remoting support, I might have to reconsider now…

Restore browser history when using AJAX

Yahoo explains, via Don MacAskill’s blog (my new favorite)

MT GS RoR A-Z: The complete guide to Rails on Media Temple’s Grid Server

This tutorial will walk you through setting up everything you need to deploy Rails apps on Media Temple’s Grid Server. The information on each part of the setup is available elsewhere but I thought it would be helpful to have it all in one place. The tutorial will cover setting up a rails container, creating [...]

Trim the fat with HAML

The announcement of Rails 1.2 wasn’t the only interesting post on weblog.rubyonrails.org, I also found out about HAML a templating system for Rails that cleans up your code and banishes those ugly ASP type tags.
If you look at the two partials of a form you’ll see that you not only save a few lines of [...]