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.
Using Draper gem for simple decoration in your Rails application? You can easily build your own solution which will be a better fit. READ MORE
Hello, I’ve started to put together a new awesome page collection about all things types, type signatures / annotations and more for ruby - incl. bool, bytes, buffer, enum, flag, record, data and more. Is static the new dynamic? Happy coding with ruby with types.
Rails 6 allows to override the ActiveModel::Errors#full_message format at the model level and at the attribute level - https://blog.bigbinary.com/2019/04/22/rails-6-allows-to-override-the-activemodel-errors-full_message-format-at-the-model-level-and-at-the-attribute-level.html
Hello, I’ve started a new org that collects types and type signatures (typesigs) for ruby including Bool, Enum / Flag, Record, Data, and more. Note: Most gems / libraries are zero-dependency and, thus, can get used on its own / standalone. Happy coding with ruby (with more types). PS: Yes, the gem / libraries moved from the (secure) ruby org.
The latest rspec-benchmark adds a flexible expectation for testing objects and memory usage. It also adds the ability to configure global options such as the number of samples for perform_under and computational complexity matchers. Happy safe hacking!
One day 3 years ago in the Codest team we prepared a great Cody game for Ruby programmers. In today’s article, I would like to describe what the work on this project looked like and above all show you the code of the project, which from now on is publicly available on our github. Read more: https://codesthq.com/blog/cody-the-game-a-story-of-the-special-game/
Hello, I’ve started a new (free online) book(let) titled “Programming Bits, Bytes ‘n’ Blocks (in Ruby) Step-by-Step Book / Guide”. Let’s start with the three types of strings, that is, bytes, (string) buffers, and (frozen) strings, … Ruby Trivia Question: What’s the difference between 1)
String.new(""), and 3)
"" ?. Happy bits & bytes slicing & dicing with ruby.
In this interview, Frank Rietta, a security expert in web applications, talks about various recommendations for securing a Ruby on Rails application. Many areas are explored from code, staff, servers and infrastructure. https://www.driftingruby.com/episodes/interview-with-frank-rietta
Most Ruby developers work with Rails and Active Record for PostgreSQL database interactions. It provides a ton of magic and is simple to start with. Data integrity problems start creeping up once the code base and database structure gets older. In this blog post, I will describe a couple of techniques for ensuring data integrity and validation in Ruby on Rails web apps. [more inside]
A cloud-native approach to Rails secrets management using AWS Lambda. https://technology.customink.com/blog/2019/04/16/secure-configs-with-aws-ssm-parameter-store-and-rails-on-lambda/
Just released an simple way to use popular gems like
image_processing with AWS Lambda layers and Rails. https://github.com/customink/ruby-vips-lambda and https://github.com/customink/lamby
This post analyzes different approaches for processing multiple files simultaneously with Ruby. https://www.jorgemanrubia.com/2019/04/14/processing-text-files-in-ruby-simultaneously/