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.
I am building a Ruby on Rails SaaS template
I am building a new SaaS template for Rails. Since there are several similar good options on the market today you might wonder why I am even doing it. Here’s why.
Inline SVGs with Rails and Vite
Vite is fast and powerful replacement for webpacker or the traditional Rails asset pipeline, and inline SVGs are quickly becoming the popular way to render easy-to-style icons on the web. This post explains two approaches to inlining SVGs when using Vite-Rails: using the inline_svg gem, or creating a custom view helper. https://mattbrictson.com/blog/inline-svg-with-vite-rails
Monetizing Your Content Part 2 With Seb Wilgosz | Rubber Duck Dev Show 86
In this episode, we discuss how to monetize your developer content with Seb Wilgosz: https://www.rubberduckdevshow.com/episodes/86-monetizing-your-content-part-2-with-seb-wilgosz/
My Wordle results, a Sinatra/Parklife app
I made a microsite of my Wordle results using Sinatra and Parklife and think it’s a good example of using Parklife and where it fits in the Ruby world of static sites - My Wordle results, a Sinatra/Parklife app.
Contact forms in Hanami 2! | Hanami Mastery #046
With the release of Hanami 2.1, the view layer is fully integrated with our Hanami applications. Let’s check how to make use of a form helper to send a contact email. [more inside]
tty-option v0.3.0 released
The latest tty-option brings many improvements: enhanced conversions of command line inputs, more user-friendly help generation, many fixes to parameter settings and fully updated documentation with more examples that explain all API methods.
Learn Hotwire by building the simplest possible Hotwire and Ruby on Rails app
I’ve been using Hotwire extensively in my latest side project. The existing docs and guides were hard to understand, so I wrote the guide I wish I had. link: https://monn.app/blog/the-simplest-ruby-on-rails-and-hotwire-app-possible-beginners-guide
llm_memory gem - ChatGPT to have memory using in-context learning
I’m recently building llm_memory gem which is highly inspired by a Python library Llamaindex. It’s simple but I’ve started to use my company’s FAQ chatbot. [more inside]
We need to talk about interactors
https://mycodingtales.com/we-need-to-talk-about-interactors/ [more inside]
Thot a simple templating tool
Thot is THe Operative Templating, available as a gem https://rubygems.org/gems/thot and Github https://github.com/Ultragreen/thot. The main principe behind Thot is to KISS. [more inside]
Introduction to Rails Engines
Rails engines provide a powerful way to organize and share code within a larger Rails application. By breaking up your application into smaller, self-contained modules, you can make your codebase more manageable and easier to maintain. [more inside]
Using Rails Credentials instead of .env — How and Why
I wrote up another blog post going over how to use Rails Credentials, and why you might want to. Spoiler — they’re really handy! https://monn.app/blog/custom-credentials-in-your-rails-app
An introduction to the gateway pattern and when to use it in Rails
You can use gateway classes to organize external API integrations and establish a clearer separation of concerns. https://mattbrictson.com/blog/gateway-pattern
Leveling Up For Juniors With CodeWithJulie | Rubber Duck Dev Show 85
In this episode, we discuss leveling up junior developers with CodeWithJulie: https://www.rubberduckdevshow.com/episodes/85-leveling-up-for-juniors-with-codewithjulie/
The Mysterious Time-to-DateTime Conversion: Unraveling Ruby’s Unexpected Behavior
I recently stumbled upon a perplexing discrepancy while converting Time to DateTime using the #to_datetime method. Intrigued by this unexpected behavior, I delved into an investigation to unravel its root cause. I’ll share my findings in this blog post with you, as I believe it’s worth your attention. https://medium.com/better-programming/the-mysterious-time-to-datetime-conversion-unraveling-rubys-unexpected-behavior-5b081f278cf1