No, no, but you can just use regular Ruby methods like Array#select to view unsaved models.
The where method and its groups in ActiveRecord generate SQL queries for the database, so if the model instances are not in the database, they wonβt find anything.
Something like
@monkey = @destination.ratings.select{|rating| rating.name == 'monkey' }.first
could do the trick
edgerunner
source share