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.
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. Read more
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? Read more
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. Read more
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 Read more
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. Read more
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. Read more
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. Read more
12 Most Asked Questions About Ruby on Rails
Check out the list showing the 12 most asked questions about Ruby on Rails. Read more
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: Read more
11 Most Asked Questions About RuboCop
Check out these 11 most asked questions about RuboCop. Post Link -
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.
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
[Screencast] Tracking Changes on Action Text
Without using any gems, we look at tracking changes within Action Text. It seems like a simple thing, but challenges arise through several layers of abstraction due to the flexibility that Action Text provides. https://www.driftingruby.com/episodes/tracking-changes-on-action-text