Post has_many :categories through :category_posts

...aned vice-versa
Category.valdiate_presence_of :name
Convert post partial to slim
Convert application layout to Slim