Posts belonging to Category Rails

Seconds, Minutes, Hours – Converting Time Units in Ruby

I’m sure you’ve probably seen this question in your programming classes.. I decided I wanted to play with Ruby again and was remind of this problem, so thought it might be fun as a simple exercise to do this in Ruby.
The problem is to take a long integer and convert it to hours, minutes and [...]

SQLite3 and ‘No Such File to Load’ errors

While I was playing with Rails 2.1 I decided to try the SQLite3 support that comes built into OS X instead of using MySQL. Upon trying to run a migrate command via rake I was created with:

rake aborted!
no such file to load — sqlite3/database

After some digging around I found out that (for at least [...]

Starting The RDoc Server for Ruby on Rails

I don’t know why this isn’t better documented or stated anywhere so I’ll just iterate it here. If you want to peruse the documentation for Rails and your installed Gems type the following
gem server
And in your terminal prompt you should see
Starting gem server on http://localhost:8808/
And you should be set.

Zed Shaw: Rails is a Ghetto

Mongrel Developer/Creator, Zed Shaw, cut loose on the Ruby and Rails communities in a recent posting to his website. He gives some interesting insights into who the major players are, and cuts through some of the hype surrounding rails.
While caustic in his delivery, he makes excellent points about the industry in general. If you’re [...]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes