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.
Finding an Initially Confusing Result in Rails
find_or_initialize_by in rails takes a block. Just because you can doesn’t mean you should. Passing it a block may put you in an awkward position. Let’s find out how. https://dev.to/kevin_j_m/finding-an-initially-confusing-result-in-rails-112n
Adding Meta Tags to a Rails CMS with Polymorphism
There are pros and cons to building CMS functionality into your Rails app. It can be easy to forget important aspects, like SEO and Open Graph. Here’s an approach to addressing both using polymorphism and the MetaTags gem. https://hybrd.co/posts/adding-meta-tags-to-a-rails-cms-with-polymorphism
Glimmer DSL for LibUI Mac ARM64 Support
Glimmer DSL for LibUI (Ruby Desktop Development GUI Library and Fukuoka Ruby 2022 Special Award Winner by Matz) has just had a new release with official Mac ARM64 support in v0.5.5! [more inside]
Rubber Duck Dev Show Episode 33 | Reviewing the OWASP 6-10
Hear two rubyists review the top 6-10 web security risks according to OWASP: https://www.rubberduckdevshow.com/episodes/33-reviewing-owasp-6-10/
Reaching 1.0: Just What is a Next-Generation Progressive Site Generator?
Bridgetown represents an evolution of thinking from previous generations of tools is this space, especially within the Ruby ecosystem. The pace of progress on the web never stands still, and neither will Bridgetown. https://www.bridgetownrb.com/release/reaching-1.0-next-generation-progressive-site-generator/
Ruby on Rails 7 - How to Use Hotwire to Collect User Profile Information
I wanted to test out Rails’ Hotwire features and see if I can migrate a feature like a user registration form with Devise to use Hotwire. [more inside]
The 6 Principles of Test Automation
Test automation allows developers to get continuous feedback and spot problems very early in the production cycle. Quick iteration results in improved design, better quality, and safer launches. [more inside]
Glimmer DSL for SWT Video Tutorial 6 - Hello, Label!
Desktop development is about 10 times simpler than web development. Learn it and you will become a better web developer as you transfer the simplicity of desktop development to the web! [more inside]
Rails 7 allows permitting numeric params
Rails 7 eliminates the issue of permitting nested hash. Now required attributes can be permitted by calling the permit method directly on the parent hash. [more inside]
Hanami v2.0.0.alpha7
Concrete slice classes, consistent action and view class structures. https://hanamirb.org/blog/2022/03/08/announcing-hanami-200alpha7/
Inline documentation - The secret habit of successful devs | Hanami Mastery #17
Everyone would love to have a secret power. A skill that makes you a hero. There is no one such skill, but in this episode, I’ll talk about inline documentation - a great skill that can make you a better developer. [more inside]
Rubber Duck Dev Show Episode 32 | Reviewing the OWASP Top 5
Hear two rubyists discuss the top 5 web application security risks from OWASP: https://www.rubberduckdevshow.com/episodes/32-reviewing-owasp-top-5/
Rails 7 Hotwire : a tutorial
Hotwire is the new functionality of Rails that gained momentum lastly. This tutorial is a practical introduction to each feature. [more inside]
[Screencast] Remote Development
Having a fast and expensive computer to do daily development is a luxury. Sometimes, we may be in a position where we are just getting started with programming and the budget is very small. In this episode we look at a very moderately priced Chromebook and explore how we can make it into a viable development machine. https://www.driftingruby.com/episodes/remote-development
How to Introduce Testing in Teams and Companies
Testing is a fundamental part of a quality-driven culture, a prerequisite for avoiding the two biggest risks for a company developing products: the risk of doing the wrong thing, and the risk of doing it too late. [more inside]
Being a backend developer
I wrote a small post about how I feel being a backend developer. Bit off topic but posting it here because I am a RubyOnRails developer. [more inside]
[book] I Love Ruby updated
Updated Structs & OpenStruct, added sections Rubocop and running Ruby in Jupyter in my book I Love Ruby. Get it here. https://cliz.in/ilr
A Wordle decoder that guesses your guesses.
It’s all in Ruby and it’s open source https://github.com/mattruzicka/wordle_decoder
Building a restricted slug validator
Here’s how to build a custom slug paths validator.
Glimmer Klondike Solitaire 1.1.0
For those who like the Klondike Solitaire card game (aka Patience), Glimmer Klondike Solitaire 1.1.0 has been released with a couple of fixes. [more inside]