Archive | Ruby RSS feed for this section

Rails 3.0 rc2 Notes

With the recent release of Rails 3.0 Release Candidate 2, DHH posted on the official Rails blog to check out the sweet GitHub compare view between the two RCs for detailed information. This list is by no means complete but I made some notes from the commit view, with links where possible, about the bigger [...]

Read full storyComments { 4 }
Rake Tutorial

Rake Tutorial

If you’re developing with Rails you’ve probably encountered rake once or twice. This blog post aims to walk you through where rake came from and an introduction on how to use it effectively in your Rails apps. A Little Bit of History Rake is the project of Jim Weirich. It’s a build tool. For a [...]

Read full storyComments { 18 }

Rails Reminder: DATE_FORMATS

A friend of mine recently asked me about adding time formats to Rails apps. It’s not completely intuitive on how to add new "default" symbols for date and time formats or to get a list of the built in ones. The API has the built-in lists of constants under DATE_FORMATS but it’s a bit difficult [...]

Read full storyComments { 0 }

Using the Rails logger outside of models and controllers

You can use the Rails logger outside of Rails models in at least version 2.3.X and up of Rails. You might be used to doing the following in your models or controllers: logger.info "Some debugging info I want to see in my development log." If you make a regular model that doesn’t inherit from ActiveRecord, [...]

Read full storyComments { 11 }
Getting RSpec and TextMate to play nice

Getting RSpec and TextMate to play nice

Elijah Miller has a great blog post on getting TextMate and RSpec to play nicely together. This is pretty useful for just running specific spec files. Also, did you know you can get TextMate to automatically recognize spec files by naming them with the .spec extension and RSpec will recognize it? Link Delicious Digg This [...]

Read full storyComments { 0 }

Microsoft deems Ruby on Rails a competitor

Numerous commercial software vendors offer competing software applications for connectivity (both Internet and intranet), security, hosting, and e-business servers. System Center competes with server management and server virtualization platform providers, such as BMC, CA, Inc., Hewlett-Packard, IBM, and VMWare in the management of information technology infrastructures. Forefront security products compete with McAfee, Symantec, and Trend [...]

Read full storyComments { 0 }
423aefd3-8e36-43a1-b054-c16f860cf0fe.jpg

Receiving Email with Rails

This article originally appeared in the first issue of Rails Magazine. It is reproduced here not quite verbatim with a couple of corrections and additions. Photo from esparta on Flickr. Introduction Receiving email is a great way to add functionality to your application. This is one area, though, that is not very well documented with [...]

Read full storyComments { 10 }
257dcd94-fdec-4a09-b58f-afd97e3f8d3b.jpg

32 Rack Resources to Get You Started

Rack What the heck is Rack and why is it getting so much press lately? Well, from it’s tag-line: “Rack provides an minimal interface between webservers supporting Ruby and Ruby frameworks.” But what does that mean? Prior to Rack if you wanted to interface with Mongrel or Thin you had to write your own custom [...]

Read full storyComments { 11 }