Ruby / Rails Inside
@rubyinside
734
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
734 subscribers
Ruby / Rails Inside
https://www.codewithjason.com/ruby-instance-exec/
Code with Jason
How Ruby's instance_exec works - Code with Jason
In this post we’ll take a look at Ruby’s instance_exec, a method which can can change the execution context of a block and help make DSL syntax less noisy. Passing arguments to blocks When calling a Ruby block using block.call, you can pass an argument (e.g.…
Ruby / Rails Inside
https://rubyonrails.org/2022/1/6/Rails-7-0-1-has-been-released
Ruby on Rails
Rails 7.0.1 has been released
Hi everyone,
Ruby / Rails Inside
https://sorbet.org/blog/2022/01/06/open-sourcing-sorbet-vscode
sorbet.org
Open-sourcing the Sorbet VS Code Extension · Sorbet
We’re excited to announce that Stripe’s VS Code extension for Sorbet is now [open source](https://github.com/sorbet/sorbet/tree/master/vscode_extension). We’ve designed Sorbet to be used in editors from Day 1—For the past two years, Sorbet has exposed a flag…
Ruby / Rails Inside
http://tenderlovemaking.com/2022/01/07/homebrew-rosetta-and-ruby.html
Ruby / Rails Inside
https://www.johnnunemaker.com/ruby-rack-background-thread/
John Nunemaker
Ruby: How to Run a Rack app in a Background Thread
Stubbing and mocking are fine, but sometimes you want to test full integration. This will help you get your main thread http client talking to your rack app in another thread.
Ruby / Rails Inside
https://www.youtube.com/watch?v=K5bmy3XXyNA
YouTube
The Decorator Pattern in Ruby
🔥
FREE SaaS Idea Validation Playbook https://mixandgo.com/lp/idea-validation
🔥
Learn Ruby on Rails https://mixandgo.com/lp/practical-ruby-on-rails
The Decorator pattern allows you to attach new behavior to individual objects dynamically without affecting…
Ruby / Rails Inside
https://www.johnnunemaker.com/rails-postgres-native-partitioning/
John Nunemaker
Rails: Postgres Native Partitioning
Get your hands dirty with some SQL and native postgres partitioning.
Ruby / Rails Inside
https://kirillplatonov.com/posts/hotwire-livereload/
Kirill Platonov
Live reloading for Hotwire Rails apps
Effortless live reload setup for your Rails app with Hotwire::Livereload gem.
Ruby / Rails Inside
https://world.hey.com/jdmo/profiling-your-ruby-on-rails-application-like-a-boss-8ee936a8?utm_source=pocket_mylist
Hey
HEY World
Personal publishing that’s as easy as writing an email.
Ruby / Rails Inside
https://www.honeybadger.io/blog/hb-turbolinks-to-turbo/
Honeybadger Developer Blog
Migrating From Turbolinks To Turbo
Turbolinks is no longer being developed. It's been superceeded by Turbo, which is part of Hotwire. In this article, Julio Sampaio shows us how to port our existing Turbolinks apps to Turbo.
Ruby / Rails Inside
https://www.bootrails.com/blog/rails-authentication-with-rodauth-an-elegant-gem/
Ruby / Rails Inside
https://blog.saeloun.com/2022/01/11/ruby-3.1-adds-class-subclasses.html
Saeloun Blog
Ruby 3.1 adds Class#subclasses
Ruby 3.1's new method Class#subclasses returns all classes directly from the receiver without adding singleton classes.
Ruby / Rails Inside
https://www.godaddy.com/engineering/2022/01/10/running-puma-in-aws/
GoDaddy Engineering Blog
Running Puma in AWS — GoDaddy Engineering Blog
In the past couple of years, we have been on our journey to the cloud migrating our web services to AWS. In this blog post, we share what we learned about deploying Puma web server to AWS by migrating our email delivery service written in Ruby to AWS.
Ruby / Rails Inside
https://blog.kiprosh.com/side-effects-of-activerecords-new-feature-invert_where-in-rails-7/
Kiprosh Blogs
Side effects of Active Record's #invert_where in Rails 7
The potential side effect of using the new Rails 7 method `invert_where` that inverts all scope conditions.
Ruby / Rails Inside
https://jbhannah.net/articles/rails-7-using-invert-where-safely
jbhannah.net
Using Rails 7.0's #invert_where Safely
Rails 7.0 introduces the
method on ActiveRecord
query chains, and at a glance this looks like a more elegant solution to the
problem I’ve…
Ruby / Rails Inside
https://aws.amazon.com/ru/blogs/developer/developer-preview-smithy-code-generated-ruby-sdk/
Amazon
Developer Preview: Ruby SDK code generation using Smithy | Amazon Web Services
What is this? The AWS SDK For Ruby team is happy to announce the developer preview of smithy-ruby, a toolchain that can be used to code generate a “white label” Ruby SDK for your service API using Smithy modeling. An upcoming future version of the AWS SDK…
Ruby / Rails Inside
https://blog.kiprosh.com/rails-7-adds-new-options-to-upsert_all/
Kiprosh Blogs
Rails 7 adds new options to upsert_all
upsert_all method provides a faster way to update and insert a large number of records. Let's learn about upsert-all enhancements in Rails7.
Ruby / Rails Inside
https://hanamirb.org/blog/2022/01/12/announcing-hanami-200alpha5/
Hanami
Announcing Hanami v2.0.0.alpha5
Sensible default logger, full source dirs config, router loading flexibility, route helpers in views
Ruby / Rails Inside
https://notepad.onghu.com/2021/jruby-using-apache-poi-to-generate-xlsx-files/
Onghu
JRuby on Windows: Day 3 - Using Apache POI (Java) to create XLSX files
One of the great advantages of using JRuby is the ability to connect with Java libraries (JARs) and call Java code from your Ruby scripts. This post shows how to use Apache POI (the Java API for Microsoft Documents) to generate a simple XLSX file.
Ruby / Rails Inside
https://nts.strzibny.name/single-attribute-in-place-editing-turbo/
Notes to self
Single attribute in-place editing with Rails and Turbo
Turbo can largely simplify our front-end needs to achieve a single-page application feel. If you have ever wondered how to do a single attribute in-place update with Turbo, this post is for you.
Ruby / Rails Inside
https://blog.saeloun.com/2022/01/12/rails-7-adds-custom-enum-support-in-postgresql.html
Saeloun Blog
Rails 7 adds better support for custom enum types in PostgreSQL
With Rails 7, use create_enum to add a new enum type and t.enum to add a column.