Learn Rails Concepts With Sinatra

You’re closer than you think to a career in tech. Our grads have launched rewarding new careers — you can too.

View Our Jobs Report

The following is a guest post by Aaron Streiter and originally appeared on his blog. Aaron is currently a student a The Flatiron School. You can learn more about him here, or follow him on twitter here.

One of the primary challenges of learning Ruby on Rails is understanding the MVC Pattern. For newbies to rails, this can be a challenge.

In practice, Rails is a complex directory structure with hundreds of dependencies–not ideal for learning concepts.

If you are brand new to Rails, I suggest diving deep into Sinatra. Although Sinatra and Rails are two distinct frameworks, Sinatra can express models, views, controllers, routes on one line each, in just one file:

Here is the code for the above app; I suggest playing around with simple apps such as these to get insight into how Rails works on a high level.

Headshot of Flatiron School

Flatiron School

Blog Post Author

Read More Flatiron School Articles

Since we opened our doors in 2012, thousands of students have joined Flatiron School to launch new careers in tech.

Explore our Courses

Find the perfect course for you across our in-person and online programs designed to power your career change.

Explore Our Courses
Join a Community

Connect with students and staff at meetups, lectures, and demos – on campus and online.

Join the Community
Schedule a Chat

Have a question about our programs? Our admissions team is here to help.

Schedule a Chat