generate id for post
underscore
ruby 2 compat