Well, you can pass that to Post.find(id) and get the post_number and topic_id out from that.
Post.find(id)
post_number
topic_id