Module: Junebug::Controllers

Defined in:
lib/junebug/controllers.rb

Defined Under Namespace

Classes: Backlinks, Delete, Diff, Edit, Feed, Index, List, Login, Logout, Orphans, Recent, Revert, Search, Show, Static, Userinfo, Users, Versions

Class Method Summary collapse

Class Method Details

.slug(after = '') ⇒ Object

DRY and besides otherwise you need to escape every d



6
7
8
# File 'lib/junebug/controllers.rb', line 6

def self.slug(after  = '')
  "/(#{Junebug::Models::Page::PAGE_SLUG})" + after
end