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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
A few tips to improve the speed of deploying new instances of your rails application in an AWS elasticbeanstalk environment https://tomk32.github.io/2018/03/18/rails-on-elasticbeanstalk.html
Have you ever been unable to reproduce a bug in development? Here are some ways to get insights from your staging console.
Dokku is dev ops for dummies and a cheaper alternative to Heroku. Recently I’ve migrated a couple of my projects to it. In this blog post, I will describe how to setup and migrate a Rails app to Dokku with PostgreSQL, Sidekiq, Redis and Let’s Encrypt or Cloudflare for free SSL. [more inside]
Oi, como vai? O post de hoje fala um pouco sobre o IRB, vai lá dar uma olhadinha! https://merubygirl.wordpress.com/2018/04/06/manda-que-eu-faco/ [more inside]
In this last part of the series, I’m going to compare two of the features I use most in my work: project search and open quickly. https://medium.com/@davidmles/code-editors-for-mac-iii-3c40dd6986b9
A gem with a simple objective: make programming with immutable data structures in Ruby as joyful and frictionless as using the built-in
Hash classes. So easy, in fact, that using immutable structures becomes the norm, rather than the exception.
Persistent-💎 gives you a very tidy syntax for creating immutable: arrays (
my_array = a💎[1, 2, 3]; hashes (
my_hash = h💎[key1: 'foo', key2: 'bar']; and sets (
my_set = s💎[:sephiroth, :kills, :aeris]). See project website for more details!
If you receive a user input in your application, you need a validation – no doubt about it. When thinking about the validation in a Ruby on Rails application we used to think about a model validation in the first place. But how about other levels of the validation? READ MORE
This header helps to reduce or completely remove Injection and information leakage vulnerabilities. A basic Content Security Policy is easy, but for an effective one you’ll need a CSP strategy.
Rails 5.2 has a new way to use secrets.yml. It’s secure and much simpler than we are using in version 5.1. Now, you can even track GitHub history of your secrets. For details you can check my blog here: [more inside]
ActiveStorage will not work with UUIDs out of the box. Chime in on the PR to change that here: https://github.com/rails/rails/pull/32466
Today I learned that if you call a multiplication operator on a Ruby array, it duplicates each element of the array by the multiplier. Not sure what the use case would be. For fun, I created an exponent operator for array as well, using this functionality. [more inside]
System tests are great and they can actually be fast now. They just currently have a few gotchas. This article aims at introducing system tests onto your app and test a jQuery select2 tag implementation. Read more on blog
Five-part series of blog posts about SOLID Principles. This one is about the fourth of them - Interface Segregation Principle: [more inside]
ImageProcessing is a gem that provides higher-level image processing helpers that are commonly needed when handling image uploads. Initially the gem came with a simple module-based API and provided only processing with ImageMagick (via MiniMagick), but recently it was rewritten with a more flexible chainable API, and also gained libvips support which can be up to 10x faster than ImageMagick. Read more about it here.