dsu1/Archivist

Make Edit Archive functional

Opened this issue · 0 comments

dsu1 commented

There is no implementation of the Archive edit action, create a view whether it's own web page or as a JSON request to the controller for editing the archive.

If done as it's own page:

  • Add an edit.html.erb to the archive view
  • Check that the Archive Controller properly implements this edit function
  • Consider reusing the strong params for archive creation in its edit path
  • Make the archive edit button redirect to that archive's edit page

If done as JSON:

  • Check if jbuilder is installed
  • Make a javascript file for opening an archive edit form, this form will carry over the current archive title and description for the user to alter. When the user selects complete, an Ajax request will send the new data up in JSON to the controller for processing.
  • Figure out how the Controller can update with JSON information