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.11 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.10 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.9 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.8 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.7 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.6 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.5 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.4 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.3 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.2 spec/dummy/app/controllers/pages_controller.rb
pulitzer-0.15.1 spec/dummy/app/controllers/pages_controller.rb