few fixes
got rid of some code
changed array to relation in posts#index
dashboard for users and posts
user constraint for posts
merge