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://kukicola.io/posts/dependency-injection-in-ruby/
kukicola.io
Dependency Injection in Ruby - kukicola.io
Dependency Injection is not a common pattern in ruby applications. Although even in such flexible language as ruby there is a place for DI.
Ruby / Rails Inside
https://github.com/fatkodima/online_migrations
GitHub
GitHub - fatkodima/online_migrations: Catch unsafe PostgreSQL migrations in development and run them easier in production (code…
Catch unsafe PostgreSQL migrations in development and run them easier in production (code helpers for table/column renaming, changing column type, adding columns with default, background migrations...
Ruby / Rails Inside
https://island94.org/2022/02/til-activerecord-transactions-roll-back-on-ruby-thread-abort
island94.org
TIL: ActiveRecord transactions roll back on Ruby Thread abort
I learned that ActiveRecord would roll back transactions when inside an aborted thread. It’s implemented right here, in ActiveRecord’s connection_adapters/ab...
Ruby / Rails Inside
https://rubyonrails.org/2022/2/8/Rails-7-0-2-has-been-released
Ruby on Rails
Rails 7.0.2 has been released
Hi everyone,
Ruby / Rails Inside
https://bhserna.com/turbo_frame_tag-and-dom_id.html
Bhserna
How the turbo_frame_tag helper transforms an object to an html id?
If you are new with rails and hotwire, it could be useful to know that you can pass an object to the turbo_frame_tag and it will use a string representation of that object as an id.
Ruby / Rails Inside
https://blog.saeloun.com/2022/02/09/rails-prevent-duplicates-in-find_by-cache.html
Saeloun Blog
ActiveRecord::Core
ActiveRecord::Core now prevents duplicate entries in find/find_by cache resulting in slightly improved performance.
Ruby / Rails Inside
https://www.youtube.com/watch?v=uYIUMufgsow
YouTube
Ruby on Rails 7 Drag & Drop With Hotwire
If you're confused about Hotwire, Turbo, or Stimulus JS, you're in the right place because in this video we're going to look at how to build a drag & drop feature using Hotwire's Stimulus JS and Turbo streams.
🎥
Join my new Ruby on Rails Class here: ht…
Ruby / Rails Inside
https://www.youtube.com/watch?v=2hDpNikacf0
YouTube
Rails Authentication with Rodauth
Learn how to add authentication and account management to your Rails app using Rodauth. We'll show how to tweak authentication settings, write new custom behaviour, and add new authentication features.
Show notes – https://github.com/janko-screencasts/rails…
Ruby / Rails Inside
https://rubyonrails.org/2022/2/11/Rails-7-0-2-2-6-1-4-6-6-0-4-6-and-5-2-6-2-have-been-released
Ruby on Rails
Rails 7.0.2.2, 6.1.4.6, 6.0.4.6, and 5.2.6.2 have been released!
Hi everyone!! Rails 7.0.2.2, 6.1.4.6, 6.0.4.6, and 5.2.6.2 have been released!
Ruby / Rails Inside
https://www.ombulabs.com/blog/rails/emails/tutorial/send-emails-that-thread-with-rails.html
Send emails that thread in Rails
Send Emails That Thread in Rails - The Lean Software Boutique
Email threads are great for improving the user experience of your app. In this post we will learn how the RFC 5322 specification expects us to thread emails. We will also learn that emails don’t always work as we expect them to. At the end of this post you…
Ruby / Rails Inside
https://www.youtube.com/watch?v=X65ssLplQkk
YouTube
TRAILBLAZER TALES #06 | DRY Validation
Learn about the Trailblazer framework by refactoring a chunky Rails controller action to an operation. In this session we discuss the dry-validation library and how it fits seamlessly into Trailblazer.
This show is based on #05! https://www.youtube.com/…
Ruby / Rails Inside
https://www.imamhossain.me/posts/add-a-custom-pry-prompt-in-your-rails-console/
Imam's Blog
📝
Add a Custom Pry Prompt in your Rails Console
Pry is an awesome debugging tool for Ruby. The gem pry-rails seamlessly integrates Pry with rails.
With pry-rails included in the project Gemfile, it opens the pry prompt whenever we run rails console.
[1] pry(main)> We can customize this default prompt to…
Ruby / Rails Inside
https://blog.saeloun.com/2022/02/15/rails-drops-records-not-listed-in-in_order_of.html
Saeloun Blog
Rails drops records not listed in QueryMethods#in_order_of
QueryMethods#in_order_of now filters down to only the values provided, matching the behavior of the eponymous Enumerable method.
Ruby / Rails Inside
https://gorails.com/episodes/how-to-use-meilisearch-rails
GoRails
How to add Search in Rails using Meilisearch (Example)
Meilisearch is an open source search engine written in Rust that integrates nicely with Rails to provide advanced search capabilities similar to ElasticSearch.
Ruby / Rails Inside
https://world.hey.com/dhh/introducing-propshaft-ee60f4f6
Hey
Introducing Propshaft
It's an exciting time in web development. After a decade's worth of front-end progress kept demanding ever more complicated setups, we're finally moving in the opposite direction. With simpler tools that are still able to hit those high-fidelity user interface…
Ruby / Rails Inside
https://blog.saeloun.com/2022/02/16/ruby-3.1-adds-error-highlighting.html
Saeloun Blog
Ruby 3.1 adds error highlighting gem
With changes in Ruby 3.1, we will be able to know which object is nil when an error gets raised.
Ruby / Rails Inside
https://shopify.engineering/changing-polymorphic-type-rails
Shopify
Changing a polymorphic_type in Rails - Shopify
How my team redefined the way we store one of the polymorphic associations in the Shopify codebase. This post is the solution we wish we found when we were looking.
Ruby / Rails Inside
https://gorails.com/episodes/rails-maintenance-tasks
GoRails
How to manage and run Maintenance Tasks for Rails in Production (Example) | GoRails
Deploying to production often requires running tasks to backfill new columns and other data. The maintenance_tasks gem from Shopify does a great job of allowing you to define tasks with arguments and run them in production.
Ruby / Rails Inside
https://www.youtube.com/watch?v=cBtSjNuJFLE&t
YouTube
Of users and direct messaging, pt. 1
We begin working on a direct messaging feature. This episode covers all the preliminary work: adding users to the app, setting up a basic authentication flow via Rails has_secure_password, adding an ability to show a user's profile. For the latter one, we…
Ruby / Rails Inside
https://www.honeybadger.io/blog/ruby-view-components/
Honeybadger Developer Blog
An Introduction to the ViewComponent Gem
Modern web UIs are complex. Traditional layout/template/partial techniques are not always the best fit. ViewComponent seeks to provide a better way. It's a framework for creating reusable, testable & encapsulated view...