Class: WhoNeedsWP::PageIndex
- Defined in:
- lib/who-needs-wp/sidebar/pageindex.rb
Overview
A sidebar component to display a list of pages
Instance Method Summary collapse
-
#render ⇒ Object
See Sidebar.render.
Methods inherited from Sidebar
Constructor Details
This class inherits a constructor from WhoNeedsWP::Sidebar
Instance Method Details
#render ⇒ Object
See Sidebar.render
5 6 7 |
# File 'lib/who-needs-wp/sidebar/pageindex.rb', line 5 def render WhoNeedsWP::render_template("pageindex", { :pages => WhoNeedsWP::Page.all }) end |