Open wmene opened 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
app/views/triannon/annotations/_form.html.erb
form_for
{:annotation => {:data => 'text area data}}
It should just take the content of the text area and send it as the body of the POST
The service should also return a status code of 201 Created if successful
status code is correct now.
Is this Triannon or Triannon-Service?
Triannon. It's in the gem. Rails engines are magic.
The current
app/views/triannon/annotations/_form.html.erb
uses theform_for
helper to create a form that POSTs a hash likeIt should just take the content of the text area and send it as the body of the POST