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.

Direct & Secure Rails Client-side File Uploads to AWS S3 Buckets

Many Ruby on Rails apps use Amazon AWS S3 buckets for storing assets. When dealing with files uploaded by front-end web or mobile clients there are many factors you should consider to make the whole process secure and performant. In this blog post, I will describe common pitfalls and an optimal solution when it comes to handling client-side file uploads. [more inside]

Two levels deep Service Objects

I personally prefer small classes, short, single purpose methods over the one big piece of code. Having said that I have to admit that this approach has a significant downside - methods are short quite often because internally they call other methods, which call other methods, which call other methods… Let’s look at another approach to writing your Service Objects https://bpohoriletz.github.io/2018/04/20/two-levels-deep-service-objects.html

Working Effectively with Data Factories Using FactoryBot

Learn about patterns that can help you use factories more effectively with examples based on Ruby’s FactoryBot: https://semaphoreci.com/community/tutorials/working-effectively-with-data-factories-using-factorybot

Hey, thank you very much for your article, but this page is not available anymo…
Hi, this is the corrected link: https://semaphoreci.com/community/tutorials/wor…

Ruby 2.5 enables Thread.report_on_exception by default

Threads are hard to work because when they die then , by default, we don’t get much info. This new feature in ruby 2.5 would provide us more info when threads die due to an uncaught exception. Originally this feature was discussed 6 years ago. Read on to see why it took so long. [more inside]

Loading older posts