rails icon indicating copy to clipboard operation
rails copied to clipboard

Ruby on Rails

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

### Motivation / Background I'm writing my own generator (concept) and would like to easily call the model generator This Pull Request has been created because it wasn't easy to...

railties

### Steps to reproduce - Create a table with a postgres date range column (tsrange for example) - Create an entry in that table witha date range that has infinity...

activerecord
With reproduction steps

### Motivation / Background While `fields_for` currently accepts a lambda as an argument for `child_index`, that lambda is called without any arguments. Being that we are enumerating the association on...

actionview

### Motivation / Background Implements - https://discuss.rubyonrails.org/t/feature-proposal-alias-association/83439/4 Rails 7.1 deprecated using `alias_attribute` for anything other than an attribute. Many applications end up using `alias_attribute` to alias associations and removing such...

activemodel
activerecord

https://github.com/rails/rails/pull/49072 allowed you to turn `support_unencrypted_data` on a global level, then turn it off for specific attributes. But it didn't allow the inverse: you couldn't turn the config off globally,...

activerecord

### Steps to reproduce When routing with nested controller paths (e.g. [in this setup](https://github.com/joshuay03/missing-exact-template-nested-controller-demo-app/blob/92fc37b932d3a224886482d968bc3472d68dee18/config/routes.rb#L8-L10)), if a view template is missing for a nested controller, the error page dsiplayed suggests the...

actionpack
attached PR

### Motivation / Background The `ActiveSupport::LocalCache::Middleware` clears the local cache after each requests, but when using the `with_local_cache` method, this could be counter intuitive as this method is supposed to...

activesupport
railties

### Motivation / Background `ActiveRecord::Relation` `where` has a nice hash-style interface for forming the `where` clause. This PR enables a similar style for `order`, while maintaining all existing functionality. ActiveRecord::Relation...

activerecord
needs feedback
docs

### Steps to reproduce With `query_constraints: []` one can create a custom query for an association, for example: ```ruby class BodyPart < ActiveRecord::Base end class Human < ActiveRecord::Base has_many :body_parts,...

activerecord
stale

### Motivation / Background This Pull Request has been created in order to fix issue #50338. ### Detail This Pull Request provides a working solution for the destroy function for...

activerecord