rails
rails copied to clipboard
Ruby on Rails
Another ERB regression. Here's the template: ``` Posts ``` Here's the exception screen: ![CleanShot 2024-02-14 at 14 19 08@2x](https://github.com/rails/rails/assets/2741/84d72fe0-32e6-4597-9424-756af8f56480)
Seems like we've regressed on exceptions raised from within ERB templates. They're showing the backtrace of the compiled method instead of the underlying template. That's not very helpful. ![CleanShot 2024-02-14...
Bundler has a nice new feature to get the ruby version from .ruby-version. Would be nice to take advantage of that when possible. So the default Gemfile should generate `ruby...
~~Debugging why a CI job get stuck is particularly painful as the output doesn't contain any information whatsoever.~~ ~~By enabling `--verbose` we ensure the last line of the CI job...
### Steps to reproduce ```ruby # frozen_string_literal: true require "bundler/inline" gemfile(true) do source "https://rubygems.org" git_source(:github) { |repo| "https://github.com/#{repo}.git" } gem "rails", github: "rails/rails", branch: "main" gem "sqlite3" end require "active_record"...
From https://hackerone.com/reports/2334455 (Treated as Informative) --- The danger of deserialization has been reduced in Rails 7.1 by increasing the number of settings that do not use Marshal in MessageVerifier. However,...
**Motivation / Background** Currently, the `where.associated` method in Rails only allows filtering associated records with an `inner join`, which can potentially override existing join types in the query. The fix...
We were getting `ActiveStorage::FileNotFoundError`s spuriously and are fairly confident that this is a race condition in the way ActiveStorage handles uploads and attachment. ### Steps to reproduce In the [rails...
### Motivation / Background Wrapping code in a block is not always (easily) possible, this way it behaves like stdlib Tempfile that can be unlinked manually in addition to the...
### Motivation / Background This Pull Request has been created because there are typos and variables are incorrectly named in #50914 . ### Detail This Pull Request changes: fix typo...