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.
Rails testing snippets for VS Code now available
I finally got around to porting my collection of snippets for RSpec, Capybara, and FactoryBot from Atom to Visual Studio Code. Everyday Rails RSpec snippets for Visual Studio Code is now available in the marketplace. Useful for me, maybe useful for others!
Optimize Rails app performance with ChatGPT
We discussed my previous post about optimizing the performance of a Rails application with SQL within the Belarus User Group. During the discussion, we also had some fun experimenting with ChatGPT, asking it to solve the same problem. The results were impressive. I shared the outcome in this post: https://blog.widefix.com/optimize-performance-of-rails-app-with-chatgpt/ [more inside]
Euruko 2023 Conference in Vilnius
The First and Oldest Ruby Conference in Europe celebrates its 20th year anniversary. This year holds even greater significance as we also commemorate Ruby’s 30th birthday and the 700th anniversary of Vilnius. [more inside]
The 3 Vite plugins I use on every new Rails project
I’ve completely switched away from Sprockets and Webpacker and am using Vite for my current Rails projects. One thing I’ve discovered is that while the default Vite-Rails installation is nice, it is not very opinionated. I always end up adding these three plugins on top of the standard Vite-Rails config: autoprefixer, rollup-plugin-gzip, and vite-plugin-full-reload. Here’s how to set them up: https://mattbrictson.com/blog/3-vite-rails-plugins
PullPreview - GitHub action to start preview deployments on AWS
PullPreview is a GitHub Action written in ruby that starts preview deployments for your pull requests and branches. It can work with any application that has a valid Docker Compose file.
The Making of Avalon in Dragon Ruby with James Stocks | Rubber Duck Dev Show 87
In this episode, we discuss the making of Avalon using Dragon Ruby with James Stocks: https://www.rubberduckdevshow.com/episodes/87-the-making-of-avalon-in-dragon-ruby-with-james-stocks/
5 Tips for new Rails developers
5 tips for new Rails developers to be more productive and confident. [more inside]
[Screencast] Episode #404 - Page Not Found
In this episode, we take a few different approaches in how we display error pages in our Rails application. We’ll also look at a few potential problems with each approach that we need to be aware of. https://www.driftingruby.com/episodes/page-not-found
Hotwire: Reactive Ruby on Rails Applications
I’m happy to share a 24h complete access to my new course on LinkedIn Learning: https://www.linkedin.com/posts/davidmles_my-new-hotwire-course-is-now-available-on-activity-7070277428954152960-7soV/?utm_source=share [more inside]
Ractors in Ruby: An Overview and Exploratory Guide
Explore Ractors in Ruby with our comprehensive guide for improved performance and scalability. Ideal for both seasoned and new Ruby developers. » https://www.spritle.com/blog/ractors-in-ruby-overview-exploratory-guide/
Using Phlex in Sinatra with phlex-sinatra
Phlex already works with Sinatra (and everything else) but its normal usage leaves you without access to Sinatra’s standard helper methods. That’s why I created phlex-sinatra which lets you use Sinatra’s url()
helper method from within Phlex (along with the rest of the usual helper methods available in a Sinatra action) - Using Phlex in Sinatra with phlex-sinatra
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]