refactoring static individual post routes to dynamic posts#show