rails icon indicating copy to clipboard operation
rails copied to clipboard

Ruby on Rails

Results 459 rails issues
Sort by recently updated
recently updated
newest added

### Summary We use Rails with multiple domains (and subdomains). All these domains are configured with `config.hosts`. Sometimes we have dynamic redirect from one domain to an other. And `ActionController::Redirecting::UnsafeRedirectError`...

actionpack

### Issue Description Generally when using JSONB operators `->` (arrow operator) and `->>` (double arrow operator) in SELECT statement, ActiveRecord returns correct result types: objects for `->` operator and string...

activerecord

### Summary We recently ran into an issue where we used `.unscoped` as part of a method chain without realising that it would also unset the scoping of the association....

activerecord
docs

Patches https://github.com/rails/rails/issues/45766 ### Summary This change fixes a defect in `ActiveModel::Dirty#attribute_changed?` where the `:from` and `:to` options are not being type cast. For example, for an enum attribute, `:from` and...

activemodel
activerecord

### Summary When an association record about to be auto-saved fails validation, the validation error is wrapped in a `NestedError`, but only if the association is defined with `autosave: true`...

activemodel
activerecord

### Summary Added `DateTime` helpers `on_or_before?` and `on_or_after?` based off this request https://discuss.rubyonrails.org/t/proposal-create-datetime-helpers-on-or-before-and-on-or-after/80410 which would allow a date or time to be compared to another date or time and determine...

activesupport

Should we add Rack 3 to the text matrix? It's not released yet but will be soon, in the mean time you can get it from `git: "https://github.com/rack/rack"`.

actionpack

### Steps to reproduce 1. Open a Rails console 2. Execute `ActiveSupport::TimeZone.us_zones` 3. Rails 5.0.2: ``` irb(main):007:0> ActiveSupport::TimeZone.us_zones [ [0] #, [1] #, [2] #, [3] #, [4] #, [5]...

activesupport
stale

A few things should be updated for the relative_url_root docs. https://guides.rubyonrails.org/configuring.html#deploy-to-a-subdirectory-relative-url-root > Firstly, regarding your point about `config.action_controller.relative_url_root` - that's what the configuration used to be called in earlier versions...

docs
stale

### Description It seems like the documentation (https://guides.rubyonrails.org/configuring.html#deploy-to-a-subdirectory-relative-url-root) for setting up relative root deployments is lacking. In some (most?) cases, it is not enough to specify the `RAILS_RELATIVE_URL_ROOT` variable, but...

docs
stale