aantix / turkee

Blurring the line between Mechanical Turk, Rails and usability testing..
http://github.com/aantix/turkee
MIT License
152 stars 39 forks source link

Turkers can't submit HIT form #34

Closed owenstrevor closed 9 years ago

owenstrevor commented 9 years ago

Using turkee_form_for(@model, params) as in the instructions

Turkers get this error:

There was a problem submitting your results for this HIT.

This HIT is still assigned to you. To try this HIT again, click "HITs Assigned To You" in the navigation bar, then click "Continue work on this HIT" for the HIT. If this problem persists, you can contact the Requester for this HIT using the "Contact" link above.

To return this HIT and continue working on other HITs, click the "Return HIT" button.

Neither the assignmentId, hit_id, or worker_id, is present in the form when I test it with a live HIT. Why could this be?

owenstrevor commented 9 years ago

Update: This makes no sense. I passed the params on my local server and the form helper generated the correct hidden fields.

For some reason my rails app is acting as if the params are not being passed at all, even though I see them in the iframe code.

aantix commented 9 years ago

Is this in production or the turk sandbox?

owenstrevor commented 9 years ago

Production. I think it has something to do with the iframe in Mturk. If I just pass the params in the URL and view the page directly the correct hidden fields are created. Then again it could be something else.

owenstrevor commented 9 years ago

Got it working! The issue was that my form is two pages (multi-step form). When Turk loads the first page, the params are in the URL, but when I step through to the second page those params are lost. All I had to do was pass the params through and it worked.