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.morozov.is/2018/05/27/do-notation-ruby.html
Ruby / Rails Inside
https://kddnewton.com/2022/04/25/ruby-syntax-tree-github-io.html
Ruby / Rails Inside
https://bhserna.com/preload-counts-active-record.html
Bhserna
How to preload counts in a list with ActiveRecord
Imagine that you need to put the number of likes for each post in a list, but avoiding n+1 queries.
posts.each do |post|
post.likes.count # n+1 queries
end
One way to avoid n+1 queries here, is to preload the association and the count the records...
Ruby / Rails Inside
https://hanamimastery.com/episodes/20-dry-validation
Hanami Mastery - a knowledge base to hanami framework
dry-validation - The one gem to validate them all!
Validating data input is an extremely important problem to tackle in all applications. In Ruby ecosystem there is no better tool for that than dry-validation. Here is why!
Ruby / Rails Inside
https://rubyonrails.org/2022/4/26/Rails-7-0-2-4-6-1-5-1-6-0-4-8-and-5-2-7-1-have-been-released
Ruby on Rails
Rails 7.0.2.4, 6.1.5.1, 6.0.4.8, and 5.2.7.1 have been released!
Hi everyone!!!! This is an announcement to let you know that Rails 7.0.2.4, 6.1.5.1, 6.0.4.8, and 5.2.7.1 have been released!
Ruby / Rails Inside
https://www.morozov.is/2022/04/26/service-objects-part-2.html
Igor writing about things
Unfinished: Designing helpful service objects. Part 2. Practice
This is a partially-written post, which will never be complete I've been writing this article on-and-off since June 2020. I didn't like how it turned out and re-wrote it numerous times. It tries to cover way too many things at once, and that's the problem…
Ruby / Rails Inside
https://davidmles.medium.com/the-most-useful-visual-studio-code-extensions-i-use-for-ruby-development-637501115248
Medium
The most useful Visual Studio Code extensions I use for Ruby development
I use Visual Studio Code daily for web development with Ruby on Rails. By default, it is a great editor with handy tools. But its great…
Ruby / Rails Inside
https://timriley.info/writing/2022/04/28/salubrious-ruby-dont-mutate-what-you-dont-own/
Ruby / Rails Inside
https://janko.io/how-i-enabled-sequel-to-reuse-active-record-connection/
Janko Marohnić
How I Enabled Sequel to Reuse Active Record’s Database Connection
When I started developing the Rails integration for Rodauth, one of the first problems I needed to solve was how to make Rodauth work seamlessly with Active Record, given that it uses Sequel for database interaction. I believed these two could coexist together…
Ruby / Rails Inside
https://www.youtube.com/watch?v=qpZgHeteH04
YouTube
Inline Editing each Page Title - Episode 2 - Let's recreate Notion in Ruby on Rails
In a normal Rails app we have forms, we have save buttons, and finish work early. But I want my page titles to be inline editable. I will figure out how to capture key events, submit the changes to the server, and even update the page URL with new slugs.…
Ruby / Rails Inside
https://www.honeybadger.io/blog/avoid-race-condition-in-rails/
Honeybadger Developer Blog
How to Avoid Race Conditions in Rails
Race conditions are hard to debug—especially when you don't know it's a race condition! This article looks at some common race conditions and the best solutions for handling each one.
Ruby / Rails Inside
https://featurist.co.uk/blog/hosting-rails-apps-for-free-on-oracle-cloud-with-dokku/
archive.featurist.co.uk
Hosting Rails apps for free on Oracle Cloud with Dokku
Dokku has always been a low effort way to have your own Heroku. And now on a free infrastructure.
Ruby / Rails Inside
https://www.honeybadger.io/blog/active-support-cache-increment/
Honeybadger Developer Blog
Rails' Hidden Gems: ActiveSupport Cache Increment and Decrement
You've probably used `Rails.cache` to read, write, and fetch cached data in Rails—but did you know you can also work with counters? In this series, Jonathan Miles introduces us to some of the lesser-known tools hidden in your Rails codebase.
Ruby / Rails Inside
https://www.youtube.com/watch?v=-TZk-En9kT8
YouTube
Adding Tip Tap editor to Rails - Episode 3 - Recreate Notion in Rails
Notion is a text editor on steroids; so we need our own headless text editor. And we need steroids. In this episode, we add Tip Tap into our Rails app via a StimulusJS controller, and explore how Tip Tap work. Oh, and then we save data to the server.
Links:…
Ruby / Rails Inside
https://greg.molnar.io/blog/6-security-improvements-in-rails-7/
{ Greg Molnar }
6 security improvements in Rails 7
Rails is one of the most secure framework by default for a long time, but still there is always room for improvement, and the lates version brings a few nice improvements.
Ruby / Rails Inside
https://dmitrytsepelev.dev/natural-language-programming-with-ruby?utm_source=ruby_flow&utm_campaign=ruby_natural
dmitrytsepelev.dev
How to make Ruby interpreter run program written in a natural language
Building a Ruby DSL that can understand and execute a program written in an almost natural language
Ruby / Rails Inside
https://www.youtube.com/watch?v=CR2FCYia8C4
YouTube
Real-Time Page Updates With Hotwire in Just 5 Minutes
🔥
FREE SaaS Idea Validation Playbook https://mixandgo.com/lp/idea-validation
🔥
Learn Ruby on Rails https://mixandgo.com/lp/practical-ruby-on-rails
In this video we're looking at how to use ActionCable to broadcast TurboStreams over Web-sockets.
Ruby / Rails Inside
https://shopify.engineering/porting-yjit-ruby-compiler-to-rust
Shopify
Our Experience Porting the YJIT Ruby Compiler to Rust - Shopify
In this post, I want to give a nuanced perspective on our experience porting YJIT from C to Rust. I'll talk about the positives, but also discuss the things that we found challenging or suboptimal in our experience.
Ruby / Rails Inside
https://nts.strzibny.name/hybrid-docker-compose-rails/
Notes to self
A hybrid development Docker Compose setup for Rails
Lots of developers choose between dockerizing their development setup or leaving it as is. There is also a viable hybrid approach in combining Docker Compose with native processes.
Ruby / Rails Inside
https://fpsvogel.com/posts/2022/ruby-hash-dot-syntax-dig-performance-benchmarks
Felipe Vogel
Dot syntax and deep_fetch for Ruby hashes
benchmarks and usability considerations