setup posts and current_user associations in models and in post controller actions add form for posts set up add before filter to post controller