425.672.1879 t 805.570.3561 c

Solutions Journal

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

Creating a Mysql db on Ubuntu

Tuesday, Dec 09, 2008 at 01:30 PM | Solutions

To create a mysql db on ubuntu, ssh into your server and enter mysql by typing: mysql -u root -p Enter your password. You should be in the mysql prompt... Read more

Pushing an App Based on Bort to Github

Monday, Dec 08, 2008 at 03:49 PM | Solutions

If you have started an app with bort to save some time, you will have an issue pushing it to you repo on github. The issue is that bort already... Read more

Freeze to Specific Version of Rails

Sunday, Dec 07, 2008 at 10:34 PM | Solutions

If you need to freeze rails to a previous version than the latest build on your dev box, you can do this: rake rails:freeze:gems VERSION=2.1.1 Read more

Performance Plugins for Ruby on Rails

Wednesday, Nov 19, 2008 at 11:29 PM | Solutions

Well, in case you ever wanted to check out how you app is running, we recently tried out a couple of solutions: * New Relic * Five Runs New Relic... Read more

Installing Plugins With Git

Friday, Nov 14, 2008 at 09:52 AM | Solutions

Git is a great way to version control you project. We have been using it since March and have been very happy with it. One thing i always forget, though,... Read more

Two Little Good Ideas

Tuesday, Oct 28, 2008 at 12:28 AM | Solutions

Note to self... Fragment Caching only works in Views, not templates. Remember to put a link tag before the css link inside the head to prevent any flash of content.... Read more