Skip to content

The Odin Project. A Simple blog created from the getting started with Rails intro section of the Rails guides.

Notifications You must be signed in to change notification settings

fazer06/simple-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Odin Project: A Simple Blog

A simple blog that was created using the Getting Started with Rails intro section of the Rails Guides, but with a few additions from myself.

Additions

  • Bootstrap
  • font-awesome
  • Devise
  • Tagging
  • Article view counter
  • 3 most popular articles
  • Article categories
  • Articles counter in categories

Todo

  • Image Upload

Database Structure

User

  • first_name:string [present]

  • last_name:string

  • email:string [present]

  • password:string [present]

  • has_many :articles [dependent]

  • has_many :comments [dependent]

Article

  • title:string [5 chars min, present]

  • body:text [10 chars min, present]

  • user_id:integer [present]

  • category_id:integer [present]

  • belongs_to :user

  • belongs_to :category [counter cache]

  • has_many :comments [dependent]

  • has_many :taggings

  • has_many :tags, through: :taggings

Comment

  • commenter:string [present]

  • body:text [10 chars min, present]

  • user_id:integer [present]

  • article_id:integer [present]

  • belongs_to :user

  • belongs_to :article

Category

  • name:string [present]

  • articles_count:integer

  • has_many :articles

Tag

  • name:string [present]

  • has_many :taggings

  • has_many :articles, through: :taggings

Tagging (The connection between Articles and Tags)

  • tag_id:integer [present]

  • article_id:integer [present]

  • belongs_to :tag [present]

  • belongs_to :article [present]

About

The Odin Project. A Simple blog created from the getting started with Rails intro section of the Rails guides.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published