What is Ruby doing on Rails?
Hello, you're reading Infinum Ruby Drops, bringing you the latest Ruby and Rails related news straight to your inbox every week.
Rails 5.2 and Active Storage - the new approach to file uploads
Rails 5.2 stable version has just been released. One of its new features is a new built-in way for uploading files in your applications - ActiveStorage. That means you don't have to use third-party libraries like CarrierWave

Read More
Rails

Sometimes, your business logic can't fit in the either a model or a controller. That's where service objects come in, where you can separate every business action into its own service object.

In this post, I will share some patterns I use when developing Ruby on Rail applications. This is something other developers don’t always do — especially younger developers and those switching from other technologies

If you’ve ever created an application with more than one model, you’ve had to think about what type of relationships to use between those models. As an application’s complexity grows, it can be difficult to decide which relationships should exist between your models.

Ruby

Adding methods to an instance “on-the-fly” is a pretty common pattern in Ruby (activerecord, activesupport, etc..). To do so, we can use the BasicObject#instance_eval methods.

Everytime Ruby needs to request memory from the operating system it has to call the malloc function. This function is part of the operating system itself, but there are alternative implementations you can use

Beyond Ruby

“Everyone in this country should learn to program a computer, because it teaches you to think.” — Steve Jobs

Most modern programming languages support and encourage object-oriented programming (OOP). Even though lately we seem to be seeing a slight shift away from this, as people start using languages which are not heavily influenced by OOP, most still have objects

Blast from the past

Ruby on Rails is a web development framework for database back-ended applications. This framework is becoming very popular in the agile development due to its productivity and agility features

Gem of the week
XSS/CSRF safe JWT auth designed for SPA

Curated by Infinum's Rails team.
Infinum Rails Team · 156 2nd St · San Francisco CA 94105 · USA
Unsubscribe | View in browser