Created
March 8, 2012 18:59
-
-
Save jraczak/2002713 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoMethodError in Projects#show | |
Showing /Volumes/UserData/Users/jraczak/Desktop/nexus/app/views/requirements/new.html.erb where line #13 raised: | |
undefined method `include?' for nil:NilClass | |
Extracted source (around line #13): | |
10: <div class="field"> | |
11: <%= f.label "Requirement Type:" %></br> | |
12: <% for requirement_type in RequirementType.all %> | |
13: <%= radio_button_tag "requirement[requirement_type_id][]", requirement_type.id, @requirement.requirement_type_id.include?(requirement_type.id), :id => dom_id(requirement_type) %> | |
14: <%= label_tag dom_id(requirement_type), requirement_type.name, :class => "radio_button_label" %> | |
15: <% end %> | |
16: </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment