Archive for March, 2007

Refactor Christmas, Be Agile, and Be Happy

March 28th, 2007 tony No comments

Here is a great story of Ruby on Rails being used for a great non-profit fundraiser idea that I can’t wait to buy into. This Christmas I was truly unhappy with the amount of gifts that flooded our family’s lives. Its just become too much and I feel like Heather and I need to take the lead by giving something truly meaningful like a half a day of a cancer researcher’s time, buy a week of landmine detection for a mere $55, or displace cocaine farms in Columbia by subsidizing coffee bean farms.

Well Bruce is fortunate enough to have an opportunity to build this with Rails. And the results have been phenomenal:

Read more…

Categories: Charity, Ruby on Rails Tags:

Best Company Name of the Year, has_many: developers

March 2nd, 2007 tony 2 comments

I just ran into these guys while stumbling upon sites and this has to be the best name of the year for a Ruby on Rails consulting firm.

Categories: Ruby on Rails Tags:

Setup a Subversion Server in 4 Minutes

March 2nd, 2007 tony 30 comments

You are going to need to type fast but I think you can do it in 4 minutes. :) These are my notes on what worked for me on my Fedora core 6 with svn lib already installed by the package manager:

1. Create a Repository

svnadmin create /svnrepos

Read more…

Categories: Code, Linux Tags:

Custom Scaffold for Rails

March 1st, 2007 tony 19 comments

Ruby on Rails Custom ScaffoldingIt has been said so many times that scaffold generator is only useful for learning how Rails works and maybe for rapid prototyping and I certainly agree. But scaffold is one of the big things that really excited me when I first discovered Rails.

Why is Scaffold Generated Code Useless?

Actually I think the stubbed out functions in the controller as well as most of the views are already a great time saver but its really the generated list and show code that is useless:


< % for cat in @cats %>

< % for column in Cat.content_columns %>

< %=h cat.send( %>

< % end %>

< % end %>

Iterating over columns means that I can do nothing but rip this out and explicitly write out each column so I can then change the look and feel to be consistent with my app. Also, what if I want to use div’s instead of tables? Rip it apart.

Read more…

Categories: Code, Ruby on Rails Tags: