post
most popular brand new
How Do You Parse Tab Separated Values
Inherit an anonymous structure class!Inject and Pluck: The Secret Sauce Behind Prototype's Enumerable
Two of the most underused, albeit powerful, methods of Prototype are pluck and inject. Pluck provides an easy way to get at data, and inject is like the duct tape of Prototype—applicable in a varietySetting up Capistrano
This article walks you through how to setup the rails deployment tool called Capistrano to deploy your Rails application to a Site5 server.Databases Are Less Important Now
Rails and other comparable frameworks are reshaping the way that I and others look at databases. A lot of this is stepping down the importance of the database’s role, which can take some getting usedmetaprogramming for n00bz
“monkeypatching”, but when you want to reopen a class and add some methods, you don’t want to use class_eval or instance_eval. In fact, you (apparently) shouldn’t ever use class_evalSimplifying Edge Rails Setup
It can take a decent amount of time to create your directory, checkout edge Rails via subversion, run rails myproject using edge Rails, and then download all the wonderful plugins.Managing Rails Plugins with Piston
With Piston, you import a remote repository and check it into your local repository. You can then go nuts modifying it or periodically sync it up with its remote origin using piston update.rv, a tool for luxurious camping
It consists of an init.d script, a default mongrel harness you can adjust to taste, and a .yml file for each app. Rv is designed to run apps as reverse proxies behind Apache 2.2css_dryer: DRY Up your CSS
Cascading style sheets (CSS) are wonderful but repetitive. Rails strongly discourages repetition, the don't repeat yourself (DRY) principle, so writing CSS feels ungainly in Rails.Extending ActiveRecord
ActiveRecord::Extensions extends ActiveRecord... for you. It gives you features that ActiveRecord itself doesn't give,