Add edit to posts controller, updated tests, views and partials. Ajax stopped working. Unknown reason.