Category Archives: learns_to

learns_to: A None-Too-Brief Introduction to Partials

One of the worst parts about writing websites by hand is the repetition. If you’ve ever tried it, you’ve probably run into a problem like this: You’ve got a set of links at the top (and bottom) of each page … Continue reading

Posted in learns_to | Leave a comment

learns_to use migrations

As I mentioned earlier, I was recently hired to do actual paid work as a Rails developer (as unbelievable as that may seem to those of you who’ve actually met me). I’m beginning to realize that, in addition to this … Continue reading

Posted in learns_to | Leave a comment

learns_to use the ternary operator to make concise views

Rails’ templating system has lots of advantages. It’s simple, lightweight, and intuitive. And since it’s still just Ruby, you can refer to things exactly the same way as you would anywhere else in your application. The intuition you’ve built up … Continue reading

Posted in learns_to | Leave a comment

learns_to use acts_as_versioned

Lately, I’ve been learning Ruby on Rails. In layman’s terms, Ruby on Rails is a system for making dynamic websites like Flickr, Friendster, and yes, Music For Dozens. To drastically oversimplify, some of the smart people have gone ahead and … Continue reading

Posted in learns_to | Leave a comment