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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
A tutorial on adding external source of content into Nanoc static-site generator: https://mostlyobvio.us/2021/04/importing-external-posts-into-nanoc/
I recently was faced with the problem of setting up an audiobook streaming platform on AWS using Ruby on Rails and VideoJS. I described the challenges I encountered in the series of blog posts: https://rubywizards.com/series/audiobook-streaming
I explain advantages of introducing Form Models as a First Class Citizen under app/forms, and show you our ApplicationForm base class, including parameter coercing, validations and Strong Params “auto permitting” without any dependencies besides Rails. [more inside]
https://github.com/igorkasyanchuk/rails_performance got a major update (added support for grape, rake tasks, delayed_jobs, custom event tracking, and several bug fixes). [more inside]
Must have ruby gems in the development environment to increase productivity. [more inside]
Tutorial to fix errors: 1. BUILD FAILED (macOS 11.2.3 using ruby-build 20210309) 2. Inspect or clean up the working tree at /var/folders/….. [more inside]
I finally got around to looking at the flay documentation a few days ago, and then I added a
.flayignore file to ShinyCMS to skip checking Rails controllers and Pundit policies for duplication. This had a quite noticeable effect on the lower-scoring files in my Ruby Critic summary - the D and F grades - in fact it got rid of every single one of them…
https://github.com/igorkasyanchuk/sweet_staging with minor fixes and improvements. You can run Ruby code in a browser on your staging server, or “tail” staging.log in real time.
I explain how I optimized text search from a naive implementation to full speed : http://alexis.bernard.io/blog/2021-04-22/fast-text-search-with-postgresql-in-a-rails-project.html
Sidekiq, Flipper, RailsEventStore — what do these Rails gems have in common? They all ship web apps with UI to enhance their usefulness in the application. In production application you’ll want to protect access to them. [more inside]
https://jonsully.net/blog/rails-wizards-part-one/ — I spent the last few weeks investigating the storied history of building a multi-step form / wizard in Rails. Seems like there’ve been a lot of proposed ways to make the cookie crumble in Rails’ long history. I hoped to add clarity to a few means of doing that while investigating my own needs for my specific project. Hopefully it’s a net-positive 😊
If you’ve ever checked the environment in your Rails app with Rails.env.production? you’ve used a fascinating little utility class called StringInquirer. In this post, Jonathan Miles dives into the rails codebase to show us exactly how StringInquirer works and how we can bring a little of its magic to our own apps. https://www.honeybadger.io/blog/rails-activesupport-stringinquirer/
https://semaphoreci.com/blog/continuous-integration-monorepos - Learn how to design and run faster CI/CD pipelines on #monorepos.