sul-dlss-deprecated / triannon

Rails engine for working with storage of OpenAnnotations stored in Fedora4
Other
13 stars 1 forks source link

Update new triannon _form to POST content of text area as body #90

Open wmene opened 9 years ago

wmene commented 9 years ago

The current app/views/triannon/annotations/_form.html.erb uses the form_for helper to create a form that POSTs a hash like

{:annotation => {:data => 'text area data}}

It should just take the content of the text area and send it as the body of the POST

wmene commented 9 years ago

The service should also return a status code of 201 Created if successful

ndushay commented 9 years ago

status code is correct now.

azaroth42 commented 9 years ago

Is this Triannon or Triannon-Service?

ndushay commented 9 years ago

Triannon. It's in the gem. Rails engines are magic.