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

Turkee doesn't work with Rails 4 #17

Closed tomfakes closed 11 years ago

tomfakes commented 11 years ago

Trying to integrate Turkee into a new Rails 4 app I'm building, and the first thing that breaks is the usage of attr_accessible instead of strong parameters

Using the 'protected_attributes' gem gets me past this first problem. I'll add more if I run into further issues

aantix commented 11 years ago

Thanks Tom. Haven't had any client or personal projects for Rails 4 yet, so I haven't looked at doing the migration. I'd definitely accept that pull request if you're up for it. :)

aantix commented 11 years ago

Since Mechanical Turk will look to show your external forms in an iFrame, for Rails 4, you're going to have to remove the default security headers that would prevent this:

E.g.

config.action_dispatch.default_headers.clear

http://edgeguides.rubyonrails.org/security.html#default-headers

aantix commented 11 years ago

Rails 4 support was merged in with PR https://github.com/aantix/turkee/pull/19