refactor posts controller
refactor post model
add #idx test
fix comment
Merge pull request #21 from 1syo/refactor-posts

Refactor posts