forked from bofh/fetsite
pages added
This commit is contained in:
11
app/helpers/pages_helper.rb
Normal file
11
app/helpers/pages_helper.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
module PagesHelper
|
||||
|
||||
def breadcrumbs(page)
|
||||
s = []
|
||||
page.ancestors.each do |p|
|
||||
s << content_tag(link_to p.name, page_path(p))
|
||||
end
|
||||
raw(s.join(' '))
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user