Sha256: 638b28e9f38cd5ad305cdf609c689cbcb88964aa2425fc199b1c2226e0547117

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

module ApplicationHelper

  # added by PagesCMS. Fill out this helper to protect your views.
  def current_user_is_admin?
    true
  end

  # added by PagesCMS. Use this helper to link to user created pages.
  def slugged_path(page)
    if page.class == String
      "/#{page}"
    else
      "/#{page.slug}"
    end
  end

  # redirects to the blog with a search
  def blog_path(search = '')
    "/blog?search=#{search}"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pages_cms-1.1.0 test/dummy/app/helpers/application_helper.rb