Starting to pick up Ruby & Rails
November 2, 2020
I started a new job this week, at a consulting agency that works in Ruby on Rails a lot. I used Rails at a summer internship in college, but haven't really touched it since. Here's a few things I learned or read on my first day studying up.
-
Rails itself isn't a server that accepts traffic; it does handle routing and such though. In the company's apps, Puma is the actual server that accepts traffic and forwards it on to the running Rails instance to handle and come up with a response. There are alternatives to Puma, but Puma is very popular and comes with Rails by default.
-
Strings defined with single quotes: no interpolation. Strings with double quotes:
"yes <#interpolatedVars>"