Changed root_url to index of posts
Configured photo attachments to posts with paperclip. Updated posts form with simple_form.