Sha256: 907266d689946dc539a9ad7528ae702d5990615de0b478959488c457bb789228

Contents?: true

Size: 458 Bytes

Versions: 31

Compression:

Stored size: 458 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_type_version = Pulitzer::PostType.named('Welcome').published_type_version
    @post = post_type_version.posts.find_by!(slug: params[:slug]).get_active_version!
  end

end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
pulitzer-0.15.31 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.30 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.29 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.28 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.27 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.26 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.25 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.24 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.23 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.22 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.21 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.20 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.19 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.18 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.17 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.16 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.15 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.14 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.13 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.12 spec/dummy/app/controllers/pages_controller.rb