Posts (Page 42)

Written content to help you along your web development journey, without forgetting to have some fun along the way.

Instantiate a Class from a String in Rails

Rails classes need to be called dynamically sometimes. Learn how to do it using the constantize inflector.

Nov 20, 2014

Command Line Scripts Using Ruby

Command line scripts aren't so bad to write when you've got Ruby on your side.

Nov 17, 2014

Timeless Qualities, Like Being on Time

Being on time is a quality that might just never go out of style. Avoid that nasty label of being the late person.

Nov 17, 2014

Rethinking Email as a To-Do List

Email revolutionized the way in which we communicate. But it's become annoying. Here is a new way of thinking about managing your inbox.

Nov 13, 2014

Round to the nearest 0.5 in Ruby

A cool and quick trick to round floats to the nearest 0.5 in Ruby.

Nov 01, 2014

Multiple Line "If" Statement in CoffeeScript

There are lots of different ways to move "if" statements in CoffeeScript into multiple lines. Pick the one you like the best!

Oct 29, 2014

Upgrading Homebrew for Mac OS X Yosemite

A new operating system means taking a few minutes to upgrade Homebrew. Here is how I went through the process.

Oct 28, 2014

Run Multiple Rails Servers at the Same Time

It's annoying to shut down and start up your Rails server when jumping between projects. Learn how to run multiple servers at the same time.

Oct 24, 2014

Preview Emails in Rails

Rails 4.1 introduced the ability to preview email messages from your mailers without sending an email. Learn how ...

Oct 23, 2014

Order Rails Query by Virtual Attribute

Rails' scopes don't work well with virtual attributes since they resolve to a SQL query. Instead you can throw them in an array and then sort by a virtual attribute.

Oct 22, 2014