Category Archives: Ruby on Rails

Paperclip for easy Rails file uploads

It’s my first post in months*, so it must be worth it right?
Rails Inside has the details on Paperclip as an alternative file upload/association plugin, I’ve tried them all and paperclip covers all your file upload bases.
*I’ve been busy with Fatherhood 101 and my new job as a Flex Dev at Captial Group (the largest [...]

Posted in Ruby on Rails | 1 Comment

Display Rails associations in a Flex DataGridColumn

Frameworks like Ruby on Rails and CakePHP make it easy to set up model associations with belongs_to, has_many, and the ever popular has_and_belongs_to_many. However, getting those associations to show up in a Flex DataGridColumn’s dataField isn’t immediately obvious, you’d assume you could just do parent.child or child.parent but that just gives a blank column. After [...]

Also posted in ActionScript, Flex, Ruby | Leave a comment

Interesting Links: YUIRails, Ebb faster than Mongrel and thin

The JavaScript library I use most after prototype is YUI so a big thanks to Chetan Patil for making it much easier to use in Rails.
Ruby Inside has a post on Ebb a small and fast web server for hosting Rails and Merb applications (and soon Django).
Ebb is a small, extremely high performance Web / [...]

Also posted in Ajax, JavaScript, Merb | Leave a comment

Mosso offers ‘new’ cloud hosting

I got all excited this morning reading TechCrunch with their post about Rackspace Offerering Cloud Computing with Mosso. Once I clicked through to investigate further it seems the ‘new’ cloud hosting is just their old hosting plan with 30GB of storage slashed off (down to 50GB) so they can charge you 0.50/GB a month for [...]

Also posted in Media Temple, Mosso, SliceHost | 3 Comments

Interesting Links: Rails and BlazeDS, Yahoo! map components for AS3

Derek shows how to push AMF encoded messages from the server with Rails through BlazeDS.
Ted introduces the Yahoo! map components for AS3.
Combine the two and you could build a Flex/Rails app that tracks someone’s position in real time.

Also posted in ActionScript, BlazeDS, Flash Remoting, Flex | Leave a comment

LiteSpeed adds a Rails staging environment

Via Dark as Light, the easy way to deploy Rails adds a staging environment.
Here are the LiteSpeed update instructions:
1. Click ‘update’ in the LiteSpeed administration console
2. There is no step 2
3. see #2
Why more people don’t use LiteSpeed is beyond me. Hosting a Rails app takes only a couple more steps with no mongrel_clusters or [...]

Also posted in LiteSpeed, Mongrel | 1 Comment

Flex, Flash, and Ruby hourly billing rates

HotGigs has a feature where they collect and aggregate the hourly bill rates of the consultants on their site. Here are the average hourly bill rates for Flex, Flash, and Ruby, surprisingly they have sub-categories for Flash all the way down to Flash Remoting but there’s just one category for Ruby with no Rails sub-category.
For [...]

Also posted in ActionScript, Flash, Flash Remoting, Flex, PHP, Ruby | 2 Comments

Regular expressions make my head hurt

A site to dull the pain Rubular. Via Ruby Inside.

Also posted in RegEx, Ruby | Leave a comment

Rails 2.0 and link_to_remote :with

I’m moving an old app to Rails 2.0 and other than fixing some routes Ajax calls with link_to_remote and the :with parameter was the only thing that gave me some trouble. In the old version I was grabbing the current value of a drop down list with Prototype and passing it along using :with like [...]

Also posted in Ajax, JavaScript, Ruby | 1 Comment

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| %>
[...]

Also posted in Ruby | Leave a comment