Building a web app with Ruby on Rails

In this tutorial I discussed Sinatra and walked through how to build an application to allow users to add and delete todo list items, as well as marking them as done. In this article we will work through building exactly the same application, but this time using Ruby on Rails. As both Sinatra and Ruby on Rails are based on the Ruby programming language and both use Rack as their foundation the article will also look at the differences and suggest why you may want to use one over the other.

For this application, we’ll be using the recently released Rails 4.0.0. This will work with Ruby 1.9.3 and Ruby 2.0.0. In this article, we’ll be working with Ruby 2.0.0. Once you have this installed along with RubyGems we can go ahead and install rails.

Thank you for reading 5 articles this month* Join now for unlimited access

Enjoy your first month for just £1 / $1 / €1

*Read 5 free articles per month without a subscription

Join now for unlimited access

Try first month for just £1 / $1 / €1

Creative Bloq Staff
All things Creative Bloq

The Creative Bloq team is made up of a group of design fans, and has changed and evolved since Creative Bloq began back in 2012. The current website team consists of eight full-time members of staff: Editor Georgia Coggan, Deputy Editor Rosie Hilder, Ecommerce Editor Beren Neale, Senior News Editor Daniel Piper, Editor, Digital Art and 3D Ian Dean, Tech Reviews Editor Erlingur Einarsson, Ecommerce Writer Beth Nicholls and Staff Writer Natalie Fear, as well as a roster of freelancers from around the world. The ImagineFX magazine team also pitch in, ensuring that content from leading digital art publication ImagineFX is represented on Creative Bloq.