May 21, 2013 in Learn
Creating Vanity URLs in Rails
A vanity URL is a search engine optimized (SEO) URL. Instead of having a meaningless URL like http://storeofthefuture.com/products/2015 wouldn’t http://storeofthefuture.com/products/hoverboard be better and more meaningful? It’s fairly straightforward to make URLs nicer in Rails. I’ll walk you through the process….
April 11, 2013 in Learn
How to Use the “each” Method in Ruby on Rails | Treehouse Quick Tip
The “each” method in Ruby on Rails allows you to iterate over different objects inside an array-like structure. It’s an important part of development in Ruby, and Treehouse’s Ruby teacher, Jason, explains how to use it effectively in this Treehouse…
November 7, 2012 in Learn
Rails 4 Strong Parameters
The Rails core team recently introduced a project called strong parameters. Strong parameters is the latest tool in the fight against mass assignment vulnerabilities. Let’s take the problem of your typical web form that creates a user. Your code might…
October 17, 2012 in Learn
A Behind-the-Scenes Look at What Powers Ruby on Rails
What is Ruby on Rails? Ruby on Rails is a web development framework that makes it easy to write web applications. Rails was extracted from an application called Basecamp. When you start writing a Ruby on Rails application, it’s like…
July 2, 2007 in Learn
5 Ways to Optimize AJAX in Ruby on Rails
Any sufficiently advanced technology is indistinguishable from magic.– Arthur C. Clarke When Google first unveiled GMail, then GMaps, a firestorm of interest and activity was generated — not just in those Google applications, but the technologies that powered them. These…
May 7, 2006 in Learn
The Foundations of Ruby Arrays
An array is a list of items in order (like vitamins, minerals, and chocolates). Those keeping score at home might be interested to know that the Rails website framework makes 771 calls to Array.each, 558 calls to Array.map, and 1,521…