Oct 28

Date published: 10-28-2013

Rails version: 4.0.0

Sorting lists

One thing that comes up fairly often on web sites is the need to sort lists of items. A good example of this would be a wishlist like on the Steam web site. It lets you add items to your wishlist and then sort them so they will be shown in whatever order you prefer. Rails offers a very easy way to create sortable lists, and I’ll show you how to set it up for a basic todo list.

Steam wishlist

Steam wishlist

Continue reading »

Tagged with:
Oct 14

Date published: 10-14-2013

Rails version: 4.0.0

Installing a natural text editor

In the tutorial from last week, we created an application that let the user write messages on a graffiti wall. We only let the user write a basic message, so what happens if we add some HTML to the message when we write it? Start the Rails server and give it a try, and you’ll notice that any HTML tags you write in the message won’t be interpreted but will be printed exactly as you wrote them on the wall. We’d like to modify our program so that the user can add things like bolding or changing the background color. In this tutorial, I’ll show you how to add a text editor called CKEditor to your Rails application. Continue reading »

Tagged with:
preload preload preload