NoMethodError in Builder::PostsController#show

undefined method `title' for nil:NilClass

Extracted source (around line #21):
19
20
21
22
23
24
              
@layout = @page_data['layout']
@post = @page.post_modules.find_by_slug(params[:post_path])
@title = @post.title
end
protected

Rails.root: /app

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"path"=>"pastor-s-corner",
 "post_path"=>"father-s-day--4"}

Response

Headers:

None