Ruby / Rails Inside
@rubyinside
732
subscribers
15
photos
2.51K
links
Daily Ruby / Ruby on Rails articles. Curated channel.
Faker::Hacker.say_something_smart
Suggest link/news
https://t.me/NoMethodError
Download Telegram
Join
Ruby / Rails Inside
732 subscribers
Ruby / Rails Inside
https://github.com/pawurb/rails-pg-extras#measure_queries
GitHub
GitHub - pawurb/rails-pg-extras: Rails PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum…
Rails PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more. - pawurb/rails-pg-extras
Ruby / Rails Inside
https://world.hey.com/this.week.in.rails/first-edition-of-march-f7c5100f
Hey
🎎
First edition of March
Hi, it’s zzak. Let’s explore this week’s changes in the Rails codebase. Turbo v7.3.0 is out! Be sure to check the release notes to see what changed. Configurable digest algorithm for Active Record Encryption This adds a new option to configure the digest…
Ruby / Rails Inside
https://planetscale.com/blog/how-to-kill-sidekiq-jobs-in-ruby-on-rails
Planetscale
How to kill Sidekiq jobs in Ruby on Rails — PlanetScale
Learn how PlanetScale uses a custom middleware to kill our Sidekiq jobs in production without relying on deploys.
Ruby / Rails Inside
https://www.driftingruby.com/episodes/deploying-with-mrsk
Drifting Ruby
Episode 391 - Deploying with MRSK | Drifting Ruby
Kamal (MRSK) deploys web apps anywhere from bare metal to cloud VMs using Docker with zero downtime. In this episode, we will set up a Digital Ocean infrastructure with a Load Balancer, Virtual Machines, and a PostgreSQL database. We'll use Kamal (MRSK) to…
Ruby / Rails Inside
https://andycroll.com/ruby/assign-a-default-to-an-attribute-active-record/
Andy Croll
Assign a default value to an attribute in Active Record
You’ve probably been using callbacks. Don’t.
Ruby / Rails Inside
https://www.youtube.com/watch?v=0VjRaPxHfm4
YouTube
Apparently GPT4 understand AWS Cognito and the Sinatra Ruby web framework very well
Quick experiment asking GPT4 to write all the authentication glue code between Sinatra and AWS Cognito. Haven't tried the code yet and a few issues popped out immediately, but at first glance it seems like it could save a huge amount of time.
Ruby / Rails Inside
https://world.hey.com/this.week.in.rails/testfixtures-fixture_path-deprecation-findermethods-find-support-for-composite-primary-key-values-87e6e69a
Hey
TestFixtures#fixture_path deprecation, FinderMethods#find support f...
Kaixo! Long time no see. Emmanuel Hayford here. This week, a lot happened in Rails, so much so that to keep this edition short, I've had to cut some equally goodpull requests out. Here's what I have for you today: Allow querying by the whole record for composite…
Ruby / Rails Inside
https://evilmartians.com/chronicles/anycable-goes-off-rails-connecting-twilio-streams-with-hanami
evilmartians.com
AnyCable off Rails: connecting Twilio streams with Hanami—Martian Chronicles, Evil Martians’ team blog
How to use AnyCable-Go as a library to control any WebSocket client from Ruby by example: analyzing Twilio Media streams with Hanami.
Ruby / Rails Inside
https://planetscale.com/blog/zero-downtime-rails-migrations-planetscale-rails-gem
Planetscale
Zero downtime Rails migrations with the PlanetScale Rails gem — PlanetScale
Learn about the Ruby on Rails workflow that protects your database and application from accidental downtime and data loss.
Ruby / Rails Inside
https://www.akshaykhot.com/understanding-rails-attribute-assignment/
Akshay's Blog
Understanding the Attribute Assignment API in Rails
In this post, we will explore the `AttributeAssignment` module in Rails, which allows you to set an object's attributes by passing in a hash, a feature commonly used by Active Record models. We'll also learn a little metaprogramming along the way.
Ruby / Rails Inside
https://world.hey.com/this.week.in.rails/composite-primary-keys-improvements-and-more-5fead159
Hey
Composite primary keys improvements and more
Hi, it’s Wojtek with this week’s changes in the Rails codebase. Allow specifying WHERE clauses with column-tuple syntax. Querying through Active Record where now accepts a tuple syntax which accepts, as a key, an array of columns and, as a value, an array…
Ruby / Rails Inside
https://evilmartians.com/chronicles/rubocoping-with-legacy-bring-your-ruby-code-up-to-standard
evilmartians.com
RuboCoping with legacy: Bring your Ruby code up to Standard—Martian Chronicles, Evil Martians’ team blog
How we introduce code style to mature Ruby/Rails projects with RuboCop and Standard.
Ruby / Rails Inside
https://fly.io/ruby-dispatch/pairing-with-gpt-4/
Fly
Pairing with GPT-4
GPT-4 won't build your application for you, but it can be a very helpful addition to your toolbox.
Ruby / Rails Inside
https://world.hey.com/this.week.in.rails/march-31st-2023-edition-813dd9b9
Hey
March 31st 2023 edition
🌸
Hi, it’s zzak, writing in from Aomori, Japan, home of the great Jonan Scheffler. 2023 is officially 25% over, time to enjoy
🌸
and explore this week’s changes in the Rails codebase. Add debug gem back to the Gemfile template With the release of Ruby v3.2.2…
Ruby / Rails Inside
https://medium.com/double-pointer/concurrency-in-ruby-global-interpreter-lock-gil-64ee96bc81c4
Medium
Concurrency in Ruby: Global Interpreter Lock (GIL)
This lesson discusses the global interpreter lock, also known as GIL and its effects.
Ruby / Rails Inside
https://evilmartians.com/chronicles/ruby-bytes-or-generating-standalone-generators
evilmartians.com
Ruby Bytes, or generating standalone generators—Martian Chronicles, Evil Martians’ team blog
Introducing Ruby Bytes, a toolkit to build, install and deploy Ruby and Rails application templates.
Ruby / Rails Inside
https://andre.arko.net/2023/03/05/caddy-puma-dev-for-local-development-with-custom-domains-and-https/
andre.arko.net
Caddy + puma-dev for local development with custom domains and HTTPS
I develop a lot of webapps locally, often at the same time. For Ruby-only applications, puma-dev is by far the most convenient way to handle the situation. A single setup command gets you a lot out of the box:
Ruby / Rails Inside
https://world.hey.com/this.week.in.rails/a-new-conference-new-action-mailer-callbacks-and-more-f1e49ed7
Hey
A new conference, new Action Mailer callbacks and more!
Hi, it’s Greg, bringing you the latest news about Ruby on Rails. We have exciting news from the Rails Foundation! The first-ever Rails World Conference is coming! Join the community on October 5 & 6 in Amsterdam, Netherlands, for keynotes, technical sessions…
Ruby / Rails Inside
https://dev.to/thegnarco/metaprogramming-in-ruby-intermediate-level-4jjc
DEV Community
Metaprogramming in Ruby: Intermediate Level
This post is the second in a series focused on the application of Ruby metaprogramming. If you’re...
Ruby / Rails Inside
https://betterprogramming.pub/why-i-stopped-using-sorbet-in-all-my-ruby-projects-9366bf6dd116
Medium
Why I Stopped Using Sorbet in All My Ruby Projects
And why I think you should stop using it too
Ruby / Rails Inside
https://blog.appsignal.com/2023/04/12/audit-logging-in-ruby-and-rails.html
Appsignal
Audit Logging in Ruby and Rails | AppSignal Blog
Let's explore some options to implement audit logs, including PaperTrail, Audited, AuditLog, AppSignal, and a custom implementation.