Enumerable SoleItemExpectedError class SoleItemExpectedError Ruby on Rails edge Since v7.0.10 Available in: v7.0.10 v7.1.6 v7.2.3.2 v8.0.5.1 v8.1.3.1 edge Compare with: (choosing a version navigates to the comparison) Choose a version v7.0.10 · changed v7.1.6 · changed v7.2.3.2 · changed v8.0.5.1 · changed v8.1.3.1 · changed 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.