full rails crud functionality for both shows and posts