Sha256: cdebf7602b3ff1bb0bf970a6141659323b41e66bb9d592e6d791de8b9d7fe24d
Contents?: true
Size: 260 Bytes
Versions: 7
Compression:
Stored size: 260 Bytes
Contents
module PagesHelper def form_url @parent_page ? page_children_path(@parent_page) : page_path(@page) end def form_object @parent_page ? [@parent_page, @page] : @page end def to_html_options(pages) pages.map{|p| [p.title, p.id]} end end
Version data entries
7 entries across 7 versions & 1 rubygems