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.
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: https://engineering.shopify.com/blogs/engineering/spark-joy-by-running-fewer-tests
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. https://www.mauromorales.com/running-a-patched-ruby-on-heroku.html
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. https://www.honeybadger.io/blog/ruby-legacy-characterization-test/
Rails N + 2 queries
https://dev.to/brunvez/rails-n-2-queries-4p2h A blog post about optimizing custom queries beyond simple includes
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. https://www.botreetechnologies.com/blog/send-automated-email-ruby-rails-mailgun
I created the same app with Rails and no Javascript
How to use Cableready with Rails [more inside]
When not to use Memoization in Ruby on Rails
Link: https://blog.joshsoftware.com/2020/06/08/when-not-to-use-memoization-in-ruby-on-rails/ [more inside]
11 Most Asked Questions About RuboCop
Check out these 11 most asked questions about RuboCop. Post Link - https://thedevpost.com/blog/11-most-asked-questions-about-rubocop/
Change Default file Path of Active Storage in Ruby on Rails 5
Active Storage makes it simple to upload and reference files in cloud services, like Amazon S3, Google Cloud Storage, or Microsoft Azure Storage. https://www.botreetechnologies.com/blog/change-default-file-path-of-active-storage-in-ruby-on-rails-5
Realtime browser updates in Rails with Cable Ready
Cable Ready is a library for triggering client side updates from the server. This is the magic behind Stimulus Reflex. It’s really simple and uses ActionCable to send over client side operations to update the UI. See how to use Cable Ready for realtime browser updates in Rails