Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Corrected a double rendering of the block contents.
  • Loading branch information
aantix committed May 15, 2013
1 parent 3712ccd commit b461b1c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion 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)
Expand Down
18 changes: 8 additions & 10 deletions lib/helpers/turkee_forms_helper.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion turkee.gemspec
Expand Up @@ -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}]
Expand Down

0 comments on commit b461b1c

Please sign in to comment.