Solutions Journal
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
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
Get Savvy Insight at the Right Time
Join our always relevant newsletter. Its chock-full of tips and tricks to grow your business.