You cannot return an object Barwithout first returning the object Fooin which it is embedded.
(Foo) .
foo = Foo.create(:name => 'foo1')
foo.bars << Bar.new(:name => 'bar1')
Foo.where(:'bars.name' => 'bar1').first
=>
, Foos, , , , ( Array#find Array#select
foo.bars << Bar.new(:name => 'bar2')
Foo.where(:'bars.name' => 'bar1').first.bars.where(:name => 'bar2').first
=>
:
, , . , : " , ". , . , /.
. 100M +, .
2: - , ,