Category Archives: Ruby on Rails

Rails: cleaner partials in forms

Damian pointed me to the patch ELC Technologies committed to Rails.
As he mentions previously you did something like
<% form_for(@client) do |f| %>
<%= render :partial => ‘form’, :locals => {:f => f} %>
<%= submit_tag ‘Create’ %>
<% end %>
but now you can just do…
<% form_for(@client) do |f| %>
[...]

Hacking attachment_fu to work with Flash/Flex uploads and crop square images

Rick Olson’s attachment_fu is my favorite file upload plug-in because let’s you use three different image manipulation tools [rmagick, mini-magick, image science] and storage options [file system, database, amazon s3]. However it doesn’t yet support two features I use on every CMS I build, Flash/Flex file upload (images will upload but won’t be resized) and [...]

Rails 2.0 is go

Tons of new stuff, my favorite is Cookie store sessions

The default session store in Rails 2.0 is now a cookie-based one. That means sessions are no longer stored on the file system or in the database, but kept by the client in a hashed form that can’t be forged. This makes it not only a [...]

Akelos PHP framework apes Rails

Monkey see monkey do. I’m usually wary of PHP frameworks that are ‘inspired’ by Ruby on Rails but the Akelos folks have done a really good job with their port. They even have a screencast narrated by guy who’s funny accent you can’t quite place
Every now and then I get a project that [...]

Two new ways to load data into Flash

SWX Ruby is a port of SWX (originaly PHP), which claims to be “Ruby’s fastest library for exchanging data with Flash” I haven’t tried it because it doesn’t yet support Flash player 9 but I wouldn’t doubt it’s the fastest as many other methods aren’t too speedy (Although RubyAMF is much quicker lately).
as3yaml, you guessed [...]

Want a job working with Flex and Rails?

Jobs that combine Flex and Rails don’t come down the pike too often. Even more rare is one from a start up with a lot of buzz like Blist.
Speaking of pikes the job is in Seattle so all you Northwest Flex/Railers send in your resume and the solution to Blist’s programming challenge.

Without using any built [...]

Reduce your Rails RAM Usage with MiniMagick

If your Rails app uses Rmagick to resize images on shared hosting you may have had your app shut down because of a RAM spikes (the spike can be > 40mb when processing an image > 2mb).
MiniMagick to the rescue!
MiniMagick accesses ImageMagick directly, similar to exec(’my ImageMagick command’); in PHP. Since shared hosts are looking [...]

Rails on Mosso

My non-stop quest to find decent shared Rails hosting may be complete. I was pretty pumped about Media Temple’s Grid supporting Rails but each of the half-dozen RoR sites I’ve deployed to the Grid haven’t been ripping it up performance wise. An issue with an unresolved grid error when trying to cache pages had [...]

Sorting Images with a Flex Tile Component

This is a test for an image manager component that I’m building. The final version will have an upload feature, and when you sort the images they’ll hook up with their model in Rails using acts_as_list to save the sorting in the database. Right click the swf below to view source.

I’ve built something similar in [...]

Everybody’s chatting about Flex

…make that chatting on Flex. All Flex front-ends but a multitude of approaches to flinging the messages about on the back-side.

Ted (on Flex) has his AIRchat running on Python Twisted.
Derek Wischusen has his messages moving atop Rails, Apache ActiveMQ, ActiveMessaging, and STOMP (post 1, post 2)
Alex McCaw is the creator of Juggernaut which can use [...]