Your're almost there. The error message says,
No route matches {:controller=>"microposts", :action=>"edit"} missing required keys: [:id]
.
The controller has to know which resource (micropost) you are trying to access. Give the id of the resource and you'll be all fine.
**<%= link_to "edit", edit_micropost_path(feed_item.id) %>**