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