Transitioning from Sinatra to Rails

We made our first foray into Rails this week. Because we wrote our Sinatra apps in the MVC model, the transition was jarring mostly in the simplicity of it — how many things Rails does for me, that I had to create for myself in Sinatra. These are just a few of the most notable differences.

Routes, Controllers, and Views

This in Rails:

Replaces this, in Sinatra: