Skip to content

Instantly share code, notes, and snippets.

@jraczak
Created March 8, 2012 18:59
Show Gist options
  • Save jraczak/2002713 to your computer and use it in GitHub Desktop.
Save jraczak/2002713 to your computer and use it in GitHub Desktop.
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