switch post to ruby block