425.672.1879 t 805.570.3561 c

Solutions Journal

Deploying Rails 2.3.2

Friday, Apr 24, 2009 at 03:54 PM | Solutions

If you run into a deploy error with Capistrano when deploying a rails 2.3.3 app, you might need to add the irs_process_scripts plugin. You can install it from github at... Read more

A Great Syntax Highlighter

Tuesday, Apr 21, 2009 at 03:13 PM | Solutions

If you are looking for a good solution for syntax highlighting, we though we would try out Alex G's Syntax Highlighter. It is a pretty comprehensive solution with minimal fuss.... Read more

Enumerable is your Friend

Thursday, Apr 02, 2009 at 07:22 AM | Solutions

The Enumerable ruby class is your friend! Forget about for loops and trying to ouput an iterator. Instead, in your ruby code, you can do: @post.comments.each_with_index |post, index| "Comment Number... Read more

Dynamic Scopes

Friday, Mar 27, 2009 at 09:06 AM | Solutions

Rails 2.3 has a lot of fun features that are proving to be handy. We have been excited to try some out and we had a chance yesterday to use... Read more

View Log in Real Time

Wednesday, Feb 04, 2009 at 07:12 AM | Solutions

This is a great way to look at your production log in real time and not have to download a huge log file. cd to you log folder on your... Read more

Fun with Routes

Thursday, Dec 18, 2008 at 09:31 AM | Solutions

As we were building the rss feed for our journal, we came across an issue getting the right link from the rss feed to the actual post. For those Rubists,... Read more

Limiting do blocks

Wednesday, Dec 17, 2008 at 08:23 AM | Solutions

If you want to limit the loop to a certain number of items in: service.photos.each do |photo| You can do this: service.photos[(0..2)].each do |photo| And it will grab the first... Read more

Missing Gem Echoe

Tuesday, Dec 09, 2008 at 07:46 PM | Solutions

Just in case you manually update rubygems by doing: sudo gem install rubygems-update sudo update_rubygems And you get this error in your app: Could not find RubyGem echoe (>= 0)... Read more