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
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
How to use the annotate gem in Ruby on Rails
Just published a new article on using the annotate-models gem in Ruby on Rails. Hope you like it :) [more inside]
Git Lint 1.0.0 - A CLI for Git commit quality
Git Lint is the official port of the original Git Cop project that avoids references to violence or violent terminology that might make anyone feel unwelcome. The name change was necessary in order to better support the Black Lives Matter and Defund Police movements. For those using Git Cop, please update accordingly. Thanks!
Spark Joy by Running Fewer Tests
Are you frustrated because your tests take a long time to complete? Do you want to save time on getting your feature out? This is a blog post about a solution we made:
Improve your Ruby code reviews with actionable code coverage and Undercover
Learn how to set up the undercover gem to warn on methods, classes and blocks missing test coverage. Use it locally or as part of a CI build to shorten your code coverage feedback loop. [more inside]
Look up faker methods at the comfort of your terminal
Do you find yourself digging through Faker’s ReadMe (which is brilliant btw) when you’re unsure of a method’s namespace or just not sure what’s available? [more inside]
Running a Patched Ruby on Heroku
You use a PaaS because you want all the underlying infrastructure and configuration of your application to be hidden from you. However, there are times when you are forced to look deeper into the stack. In this article I want to share how simple it is to run a patched version of Ruby on Heroku.
Implementing CQRS API endpoints in Rails apps with dry-rb
CQRS is a great pattern to write SOLID code, which allows you to scale up systems without increasing complexity and coupling in the project. [more inside]
How to Create Events in Google Calendar from Ruby On Rails Application?
Wondering how to create events in Google Calendar from a Ruby on Rails application? Here’s a simple guide comprising of the steps to do the same [more inside]
Taming Legacy Code With Characterization Tests
Developers make fun of legacy systems because we’re scared of them. We’re afraid that the tiniest change will cause the app to break in unexpected ways. We’re afraid we won’t realize it until a customer complains. One way to combat this fear is through testing. In this article, José Manuel shows us how to retrofit legacy systems with acceptance test suites so we can maintain them with less fear and more confidence.
Rails N + 2 queries
A blog post about optimizing custom queries beyond simple includes
Rails 6.1's ActiveModel Errors Revamp
As Rails developers, we are all used to the book.errors(:title) interface. This has remained relatively stable up until now, but is soon going to change. I’d like to share the new model errors changes, before Rails 6.1rc1 gets released. The article contains a list of deprecation and recommended replacements offered in the new implementation. I hope to get some feedback, and see if we need to improve the upgrade guide a bit, to make the migration process less painful. [more inside]
HABTM to has_many through in Rails
rubycademy.com/habtm-to-has-many-through
VIM and Ruby on Rails - match made in Heaven
Nowadays may be some of you are using editors like Sublime, Atom, Rubymine…etc but very few knows about the Vim. [more inside]
TestBench: a principled test framework for Ruby
TestBench is just a plain old context/specification style testing framework with significantly lighter footprint, no special run-time semantics, and requires no special runner executable other than Ruby itself. Discuss on Reddit
14 Most Asked Questions About Ruby
Check out the list of 14 most asked questions about Ruby. [more inside]
12 Most Asked Questions About Ruby on Rails
Check out the list showing the 12 most asked questions about Ruby on Rails. [more inside]
ActiveSupport's delegate as a standalone gem
delegates is the delegate :list, :of, :methods, to: :receiver API, extracted from ActiveSupport into a small, no-dependencies, no-monkeypatching Ruby gem.
Send Automated Email in Ruby on Rails with Mailgun
Learn more about how to send automated email in ruby on rails with mailgun. Mailgun is a developer tool and API for sending transactional emails.
When not to use Memoization in Ruby on Rails
Link: [more inside]
11 Most Asked Questions About RuboCop
Check out these 11 most asked questions about RuboCop. Post Link -