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.
Hanami v2.1.0.rc1
A stylish new welcome screen, next level assets flexibility, and our last stop before 2.1.0!
Some tricks for simplifying Capybara queries
Capybara’s find method is a lot more powerful than it first appears. In this post, I show how the find(:element, ...) variation can be used to simplify a common type of query. Capybara also has an interesting configuration option related to test IDs. Check it out!
An experiment of fully adding both Sorbet and RBS to a side project
To test how effective they are at finding defects, I did an experiment where I added both Sorbet and RBS fully to a side project and I wrote up the results and findings in a blog post: Experiment: Fully adding Sorbet and RBS to a small project.
Rails Generate Mailer (quick breakdown)
a quick breakdown of the rails generate mailer command
rubidity gem - rubidity classic / o.g. dsl builder for rubsol contracts
hello, in the ongoing rubidity & rubysol series i packaged-up and published a new gem, that is, rubidity that tries the impossible and square the circle, that is, a rubidity “classic / o.g.” dsl builder generating rubysol “more ruby-ish” contract classes. happy blockchaining with ruby / rubysol. now available in the more classic “solidity-ish” rubidity o.g. and more modern rubysol “ruby-ish” syntax styles. you decide.
Stack Overflow vs ChatGPT & AI's Impact | Rubber Duck Dev Show 106
In this episode, we discuss the differences between using Stack Overflow and ChatGPT for finding software development answers. We also discuss what the overall impact of AI might be in the future:
Database Models and Migrations in Rails
Database Models and Migrations in Rails
Benry-UnixCommand v1.0.0 released
Benry-UnixCommand v1.0.0 released. (Document) [more inside]
Glimmer DSL for LibUI Custom Shapes
Glimmer DSL for LibUI 0.10.1 & 0.10.0 ship with support for building and scaffolding Area Canvas Graphics Custom Shapes (with optional Gemification). Custom shapes represent higher-order graphical concepts, like cube, cylinder, and uml_class, that could be formed out of more rudimentary shapes like rectangle, circle, bezier, and text, to aggregate and simplify interaction with them as coarse-grained components in a desktop application. Custom Shapes improve productivity significantly through code reuse in graphical desktop applications that rely on Area Canvas Graphics, like UML Diagramming tools, Traffic Control Signalling apps, and games…
FactoryBot for Rails testing
Dive into FactoryBot to ensure your testing data is reliable and consistent.
Limiting Maximum Index Name Length in Ruby on Rails 7.1
Read more about limiting Maximum Index Name Length in Ruby on Rails 7.1 [more inside]
Rails Authentication compliance requirements
“Suppose you are working on a Rails application that needs to meet specific security compliance requirements like PCI, ISO 2007, or SOC2. In that case, one of the objectives is to have proper authentication and access control.” [more inside]
How to skip all callbacks for all models in Rails
I explored a couple of solutions about how to skip all callbacks on ActiveRecord models. It goes from using conditional callbacks to Patching ApplicationRecord and using the Suppresor from Rails.
Pessimistic Locking in Rails
This is the second part of a series about Advisory Locks that I dig in after I had the opportunity to interview @bensheldon, the creator and maintainer of GoodJob. This is about pessimistic locking in Rails. [more inside]
The future of full-stack Rails II: Turbo View Transitions
In the last part of this series, we show how to breathe new life into our apps, adding slick page transition animations (without the hassle) via Turbo and the View Transitions API. [more inside]