Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Corrected a double rendering of the block contents.

  • Loading branch information...
commit b461b1cbb17ba807f02129ae20d387fb38d06a00 1 parent 3712ccd
@aantix authored
View
2  Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- turkee (2.0.1)
+ turkee (2.0.2)
lockfile
rails (>= 3.1.1)
rturk (>= 2.4.0)
View
18 lib/helpers/turkee_forms_helper.rb
@@ -19,7 +19,7 @@ def turkee_form_for(record, params, options = {}, &proc)
concat hidden_field_tag(k, cookies[k]) if !params.has_key?(k) && cookies.has_key?(k)
end
- concat(yield(f))
+ concat(capture(f, &proc))
end
end
end
@@ -40,15 +40,13 @@ def turkee_study(id = nil)
concat task.hit_description.html_safe
concat '<hr/>'.html_safe
concat(turkee_form_for(study, params) do |f|
- capture do
- concat f.label(:feedback, "Feedback?:")
- concat f.text_area(:feedback, :rows => 3, :disabled => disabled)
- concat f.label(:gold_response, "Enter the fourth word from your above feedback :")
- concat f.text_field(:gold_response, :disabled => disabled)
- concat f.hidden_field(:turkee_task_id, :value => task.id)
- concat '<br/>'.html_safe
- concat f.submit('Submit', :disabled => disabled)
- end
+ concat f.label(:feedback, "Feedback?:")
+ concat f.text_area(:feedback, :rows => 3, :disabled => disabled)
+ concat f.label(:gold_response, "Enter the fourth word from your above feedback :")
+ concat f.text_field(:gold_response, :disabled => disabled)
+ concat f.hidden_field(:turkee_task_id, :value => task.id)
+ concat '<br/>'.html_safe
+ concat f.submit('Submit', :disabled => disabled)
end)
end
end
View
2  turkee.gemspec
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = %q{turkee}
- s.version = "2.0.1"
+ s.version = "2.0.2"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = [%q{Jim Jones}]
Please sign in to comment.
Something went wrong with that request. Please try again.