Module: RailsNexus::ApplicationHelper

Defined in:
app/helpers/rails_nexus/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#page_title(text) ⇒ Object



3
4
5
6
# File 'app/helpers/rails_nexus/application_helper.rb', line 3

def page_title(text)
  title = [RailsNexus.application_name.presence, text].compact.join(" :: ")
  content_for(:title, title)
end

#rails_nexus_pagy_nav(pagy) ⇒ Object



8
9
10
# File 'app/helpers/rails_nexus/application_helper.rb', line 8

def rails_nexus_pagy_nav(pagy)
  pagy.series_nav
end