Sha256: b096b114ccc98c19bffee86e604e634e9504b30e6f9e5da793690234d61b603c

Contents?: true

Size: 393 Bytes

Versions: 6

Compression:

Stored size: 393 Bytes

Contents

class PagesController < ApplicationController
  def about_us
    @pulitzer_post = Pulitzer::PostType.named('About us').singleton_post
  end

  def news_posts
    @pulitzer_posts = Pulitzer::PostType.named('News articles').posts
  end

#Pulitzer Generated Actions

  def welcome
    @post = Pulitzer::PostType.named('Welcome').posts.find_by!(slug: params[:slug]).get_active_version!
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pulitzer-0.15.0 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.14.4 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.14.3 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.14.2 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.14.1 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.14.0 spec/dummy/app/controllers/pages_controller.rb