Aura Aura find

find

Finds a record that corresponds to a path.

Example

products = Page.new :slug => 'products'
products.save

boots = Page.new :parent => 'products', :slug => 'boots'
boots.save

foo = Aura.find('/products/boots')
assert foo == boots