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.
Developer Documentation With Grant Willcox | Rubber Duck Dev Show 81
In this episode, we discuss how to handle documentation when you are a developer with Grant Willcox: https://www.rubberduckdevshow.com/episodes/81-developer-documentation-with-grant-willcox/
Composing Our Own Guitar Amps From Inherited Gear
This post explores inheritance and composition as a way to build and share behavior in a system to model guitar amplifiers. https://kevinjmurphy.com/posts/composing-our-own-guitar-amps-from-inherited-gear/
Rails Pagination with the Kaminari Gem
Check out Rails Pagination with the Kaminari Gem
Humane Rails Forms
I got tired of dealing with rigid form validations, so I created the inputomatic gem that makes “fuzzy” form inputs in Rails like “1 week ago”, “Last Monday” for dates and “129/2”, “(200/3)-10” possible and wrote about it at https://fly.io/ruby-dispatch/humane-rails-forms/
Llamachat: Simple Local ChatGPT-style Web Client
Llamachat: Sinatra backed local web client for my Llamaste gem, which allows interacting with any llama.cpp compatible model in browser. Streams tokens back over websockets for real-time generation speed.
Announcing sidekiq-expiring-jobs - a gem that adds expiring jobs support to Sidekiq
I released a new gem - https://github.com/fatkodima/sidekiq-expiring-jobs [more inside]
Audit Logging in Ruby and Rails
Let’s explore some options to implement audit logs, including PaperTrail, Audited, AuditLog, AppSignal, and a custom implementation. https://blog.appsignal.com/2023/04/12/audit-logging-in-ruby-and-rails.html
How to use Flipper for feature flags in Rails
Feature flags are used all across the tech industry to test code at scale; this article explores how to integrate them into your Ruby on Rails application using the Flipper gem. https://www.honeybadger.io/blog/flipper-feature-flags-rails/
From Rails Controller to Business Action
Writing CRUD controllers in Rails may seem easy, but as your application grows, you’ll find it increasingly difficult to maintain and update your code. In this article, you’ll learn why extracting business logic from your controllers and creating focused, testable business actions is a necessary change. https://evgeniydemin.medium.com/from-rails-controller-to-business-action-d1ccabdc1ae2
The second issue of the Rails Tricks Newsletter is out!
A few handy Rails console things and the first guest trick about Avo from Adrian. https://greg.molnar.io/blog/rails-tricks-issue-2/
Safety Nets For Rails Apps With David Teren | Rubber Duck Dev Show 80
In this episode, we discuss safety nets for Rails apps with David Teren: https://www.rubberduckdevshow.com/episodes/80-safety-nets-for-rails-apps-with-david-teren/
Benefits of Agile Methodology
The Agile Methodology is an iterative approach to software development that emphasizes flexibility, collaboration, and customer satisfaction. Companies that utilize Agile techniques prioritize delivering working software in small chunks rather than providing a complete solution simultaneously.
Lazy Attributes in Ruby
An article explaining how to build lazy accessors, similar to attr_reader, into Ruby using a bit of meta-programming: https://www.gregnavis.com/articles/lazy-attributes-in-ruby.html
rails_charts release v0.0.5
https://github.com/railsjazz/rails_charts - check out this powerful charts gem in case you missed it before
Awesome Ruby list
https://opensource-heroes.com/awesome/ruby - is the biggest list of awesome Ruby/Rails gems. First iteration. Still missing some things but already a good start. It the future list will be driven by the community.
Hosting After Heroku With Chris Oliver | Rubber Duck Dev Show 79
In this episode, we discuss what to do about hosting after Heroku’s plan adjustments with Chris Oliver: https://www.rubberduckdevshow.com/episodes/79-hosting-after-heroku-with-chris-oliver/
How to Use the rodauth-omniauth Gem in Ruby
Explore how to set up the rodauth-omniauth gem for your Rails application: https://blog.appsignal.com/2023/04/05/how-to-use-the-rodauth-omniauth-gem-in-ruby.html
Llamaste: LLaMA in Ruby
Ruby C extension which wraps llama.cpp, to provide a Ruby binding to GPT-style chat completions. Currently functional, with improvements and upstream fixes on the way. [more inside]
I published the first issue of the Rails Tricks newsletter today. You can read the we
I published the first issue of the Rails Tricks newsletter today. You can read the web version at this link: https://greg.molnar.io/blog/rails-tricks-issue-1/ Subscribe if you don’t want to miss the next one.
Fixing Thread Safety Bugs With Nate Berkopec
Can you tell if a Ruby gem is really thread-safe or not? And how do you fix a seemingly thread-safety issue that can be something else entirely? [more inside]