Enumerable SoleItemExpectedError class SoleItemExpectedError Ruby on Rails 8.1.2 Since v7.0.10 Available in: v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2 Compare with: (choosing a version navigates to the comparison) Choose a version v7.0.10 · same v7.1.6 · same v7.2.3 · same v8.0.4 · same Error generated by sole when called on an enumerable that doesn’t have exactly one item. Inherits from StandardError On this page Support Bug Reports can be filed for the Ruby on Rails project on GitHub. Feature requests should be discussed on the rubyonrails-core forum. License Released under the MIT license.