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