Archive for category Ruby on Rails
Using the Amazon ECS Gem In Your Rails App
Posted by jdempcy in Ruby on Rails on January 10, 2010
Amazon.com offers a tremendous amount of web services to developers looking to display their products. They benefit from this because developers make all sorts of cool apps for browsing Amazon. For example, nifty 3D Flash experience CoolIris (formerly known as ‘PicLens’) added Amazon functionality to their product. It’s a win-win for developers and Amazon because it drives traffic to the site while paying developers referral fees. Read the rest of this entry »
Best of 2009, Ruby on Rails Edition
Posted by jdempcy in Ruby on Rails on January 2, 2010
It was a good year for Rails. In 2009, we saw a number of exciting developments and a lot of great tools were released. Rails 2.3 was released in March 2009 and met with much fanfare. Rails has seen the introduction of templates, engines and a lot of other great features. Read the rest of this entry »
Best Way to Get Gmail in Ruby on Rails
Posted by admin in Ruby on Rails on August 14, 2009
Gmail is not as easy as sendmail, unless you have this tutorial. This gem/tutorial is by far the best solution.
There are a lot of solutions out there so it can be hard to know which to choose. I have tried many and found this to be dead simple. Takes 5 minutes to setup.
Ruby on Rails Time Saver – delete development.log
Posted by admin in Ruby on Rails on August 11, 2009
When uploading your local build to a server delete your development.log file because they tend to get long and thus heavy on kilobytes.
How to order by most recently updated in Rails
Posted by admin in Ruby on Rails on July 28, 2009
This is a simple one but sometimes hard to figure out for beginners in Rails. There are a number of ways to do it but this is one of the most simple. It includes actually doing a sql query inside your find method.
@posts = Post.find(:all,rder => 'updated_at DESC')
That’s it. I’m ordering by the updated_at column in the Posts table.
Tracking What’s Hot with Ruby Toolbox
Posted by jdempcy in Ruby on Rails on July 14, 2009
Knowing what software is popular, current and updated regularly is a crucial aspect to developing successful websites. All developers benefit from being knowledgeable about what software is kept up to date but for Ruby on Rails developers this is doubly true. Enter Ruby Toolbox, a website tracking Rails plugin popularity on Github. Read the rest of this entry »
How to Truncate in Models
Posted by jdempcy in Ruby on Rails on July 13, 2009

I recently had the difficult time of trying to truncate a string in a model. Rails enforces this policy because truncation is thought to be in the domain of the view of the data. This makes sense, because you are “seeing” a portion of the string. However, in this case, I was using the truncated string in the generation of an SEO-friendly URL. Read the rest of this entry »
How to stop the server in Rails
Posted by grandecomplex in Ruby on Rails on July 13, 2009
It is quite simple to do, just need a little Linux know how.
To stop the server you need to kill it. Thus you use the
kill
command. Not so fast, you first need the “pid” for the process. Much like in Windows where you open the task manager and you kill a process. Unfortunately it isn’t so easy in Linux/Mac. Read the rest of this entry »
Useful MySQL commands with Ruby on Rails on a Mac or in Linux
Posted by grandecomplex in Ruby on Rails on July 13, 2009
Because RoR is so high level often times you can feel disconnected with what’s under the hood. Often times you need to view what objects, or columns, you are working with. Or you delete columns. Here are a handful of common mysql commands that I use often in RoR. Read the rest of this entry »
AJAX Google API to Minify Javascript using Ruby on Rails
Posted by admin in Ruby on Rails, jQuery on June 7, 2008
How to optimizing JavaScript performance in Ruby on Rails. This will only focus on one aspect of JS performance optimization, namely, writing a build script to concatenate/minify the JS, and setting up Rails to easily toggle between the compressed and normal files. Also, if your site uses a JavaScript library, we’ll explore including it from Google’s AJAX Libraries API. Read the rest of this entry »

Activity
Geir Freysson
Andrew DiFiore
zeming
Arun, Neil, shashwat
Eric, Fernando Zanatta, Jörn Zaefferer