```ruby

before_action :build_post, only: :new

def new
end

private

def build_post
  @post = Post.new
   authorize @post
end
```

Like this?