Error #599
Fail to create new questions
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Questions
Target version:
Start date:
2011-12-07
Due date:
2011-12-07
% Done:
100%
Estimated time:
Source:
Development
Detected on version:
Milestones:
Description
TypeError in Questions#new Showing /Users/emilio/Documents/RoR/tests_on_rails/trunk/app/views/choices/_form.html.erb where line #2 raised: Choice can't be coerced into Fixnum Extracted source (around line #2): 1: <div class="field"> 2: <%= choice_label(choice) %> 3: <%= check_box_tag("choices[#{choice.position}][is_correct]", "1", choice.is_correct) %> 4: <%= label_tag(t(:field_is_correct)) %><br /> 5: <%= text_area_tag("choices[#{choice.position}][text]", choice.text, :rows => 1, :id => "choices_#{choice.position}") %> Trace of template inclusion: app/views/questions/_form.html.erb, app/views/questions/new.html.erb Rails.root: /Users/emilio/Documents/RoR/tests_on_rails/trunk Application Trace | Framework Trace | Full Trace app/helpers/choices_helper.rb:4:in `choice_label' app/views/choices/_form.html.erb:2:in `_app_views_choices__form_html_erb___620998956_2496933840' app/views/questions/_form.html.erb:10:in `_app_views_questions__form_html_erb___207477798_2496261540' app/views/questions/_form.html.erb:9:in `_app_views_questions__form_html_erb___207477798_2496261540' app/views/questions/_form.html.erb:1:in `_app_views_questions__form_html_erb___207477798_2496261540' app/views/questions/new.html.erb:7:in `_app_views_questions_new_html_erb__1866042324_2496730720' app/controllers/questions_controller.rb:39:in `new' Request Parameters: {"category_id"=>"0"} Show session dump Show env dump Response Headers: None
Related issues