RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Peeking Under The Hood of ActionController Parameters, Part 2

It’s really easy to forget how much of Rails is abstracted away into a black box. Simple things like strong parameters or how a controller’s action’s handle the request-response cycle can seem magical — until we look at what’s actually going on under the hood. This blog post looks at how ActionController::Parameters isn’t just as simple as a Ruby Hash, and explores where parameters get set in ActionController::Metal.

Create maintainable queries in Ruby with query object and criterias

Leaving query logic in a single class lead to god objects hard to maintain, I explain a maintainable alternative with query objects and criterias The examples use mongodb but can be implemented with Active Record too.

You also have siphon to dynamically apply scopes on any activeRelation object. …

Architecting Rails Apps as Microservices

Monolith or Microservices? Designing your Rails app to work well with Microservices involves providing clear interfaces across the different boundaries of functionality in your app. Once the boundaries have been defined, how do you communicate across them? HTTP, queues? What if a service is down? These are some of the topics I cover in this article.

Loading older posts