Ruby

http://s.erious.ly

Author Archive

What’s New in Edge Rails: Skinny on Scopes

I go into a detailed explanation of using ActiveRecord scopes in Rails 3 over on EdgeRails.info. I won’t be cross-posting for too much long, so update your feed to the new EdgeRails feed to keep abreast of the latest and greatest! ......

‘What’s New in Edge Rails’ Moves to EdgeRails.info

For awhile I’ve wanted to move the “What’s New in Edge Rails” series to its own site to reflect the fact that it is an independent and self-sustaining series and not some small figment of my mind anymore. I started writing the...

What’s New in Edge Rails: Set Flash in redirect_to

This feature is schedule for: Rails v2.3 stable Rails’ flash is a convenient way of passing objects (though mostly used for message strings) across http redirects. In fact, every time you set a flash parameter the very next step is ...

What’s New in Edge Rails: Independent Model Validators

This feature is schedule for: Rails v3.0 ActiveRecord validations, ground zero for anybody learning about Rails, got a lil’ bit of decoupling mojo today with the introduction of validator classes. Until today, the only options you h...

What’s New in Edge Rails: Default RESTful Rendering

This feature is schedule for: Rails v3.0 A few days ago I wrote about the new respond_with functionality of Rails 3. It’s basically a clean way to specify the resource to send back in response to a RESTful request. This works wonde......

What’s New in Edge Rails: Cleaner RESTful Controllers w/ respond_with

This feature is schedule for: Rails v3.0 REST is a first-class citizen in the Rails world, though most of the hard work is done at the routing level. The controller stack has some niceties revolving around mime type handling with the ...

Rubyists, Learn Some iPhone Skillz

If any of you Rubyists are going to be attending the FutureRuby in Toronto this July and have an interest in learning how to work some magic on the iPhone, I encourage you to check out Mobile Orchard’s Dan Grigsby and his Beginning...

What’s New in Edge Rails: Database Seeding

This feature is schedule for: Rails v3.0 I’m not sure if this was ever stated explicitly has a preferred practice or not, but for the longest time many of us have recognized that using migrations as a way to populate the database wit...

What’s New in Edge Rails: Touching

This feature was released in Rails v2.3.3 There are often times when you want an update made to one object to be reflected up the object graph as an update of an associated parent object. For instance, if a new comment is created...

What’s New in Edge Rails: Batched Find

This feature is scheduled for: Rails v2.3 ActiveRecord got a little batch-help today with the addition of ActiveRecord::Base#find_each and ActiveRecord::Base#find_in_batches. The former lets you iterate over all the records in cursor-...

Get Your iPhone and Rails Apps Talkin’

The iPhone is cool and sexy. Rails is cool and sexy. Shouldn’t they be a little more compatible? We think so and have released the first version of ObjectiveResource, our port of Rails’ ActiveResource to Objective-C for the iPhone...

Rails 2.3 Released – Summary of Features

Here’s a list of the major new features in Rails v2.3 (most recent first): Rails 2.3 Features Batched find Nested Model Mass Assignment HTTP Digest Authentication Dynamic Scopes Application Generators Rails Metal No M...