Skip to content

Instantly share code, notes, and snippets.

@jraczak
Created March 8, 2012 18:13
Show Gist options
  • Select an option

  • Save jraczak/2002443 to your computer and use it in GitHub Desktop.

Select an option

Save jraczak/2002443 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 `requirement_type_ids' for #<Project:0x1032c8770>
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 "project[requirement_type_ids][]", requirement_type.id, @project.requirement_type_ids.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