jbossorg/bootstrap-community — pull request #14 by xcoulon (2013-08-26 14:22:37+00:00)
Title: Fixing problem when no page matches the given path

When no page matches the given path in the 'findInPages(path)',
an array containing 'site.pages' would be returned, which causes
an error later in the 'generateAnchorHtml(page)' method when
calling the 'real_page' attribute on the given parameter:

NoMethodError: undefined method `real_page' for #
/Users/xcoulon/code/jbosstools/jbosstools-website/_ext/breadcrumb.rb:49:in `generateAnchorHtml'
/Users/xcoulon/code/jbosstools/jbosstools-website/_ext/breadcrumb.rb:15:in `breadcrumb'
/Users/xcoulon/code/jbosstools/jbosstools-website/_partials/nav.html.haml:69:in `block in singletonclass'
/Users/xcoulon/code/jbosstools/jbosstools-website/_partials/nav.html.haml:65528:in `instance_eval'
/Users/xcoulon/code/jbosstools/jbosstools-website/_partials/nav.html.haml:65528:in `singletonclass'
/Users/xcoulon/code/jbosstools/jbosstools-website/_partials/nav.html.haml:65526:in `__tilt_70176108346320'
/U