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 ProjectsController#create | |
undefined method `projects' for nil:NilClass | |
Rails.root: /Volumes/UserData/Users/jraczak/Desktop/nexus | |
Application Trace | Framework Trace | Full Trace | |
app/controllers/projects_controller.rb:43:in `create' | |
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
class ProjectsController < ApplicationController | |
# GET /projects | |
# GET /projects.json | |
def index | |
@projects = Project.all | |
respond_to do |format| | |
format.html # index.html.erb | |
format.json { render :json => @projects } | |
end |
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 Users#show | |
Showing /Volumes/UserData/Users/jraczak/Desktop/nexus/app/views/users/show.html.erb where line #5 raised: | |
undefined method `email' for nil:NilClass | |
Extracted source (around line #5): | |
2: | |
3: <p> |
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
<%= label_tag dom_id(user), user.first_name user.last_name, :class => "check_box_label" %> |
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
class UsersController < ApplicationController | |
before_filter :authenticate, :only => [:edit, :update] | |
def index | |
@users = User.all | |
respond_to do |format| | |
format.html # index.html.erb | |
format.json { render :json => @users } | |
end |
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
<% for user in User.all %> | |
<%= check_box_tag "project[user_ids][]", user.id, @project.user_ids.include?(user.id), :id => dom_id(user) %> | |
<%= label_tag dom_id(user), (user.first_name and user.last_name), :class => "check_box_label" %> |
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
SyntaxError in Projects#show | |
Showing /Volumes/UserData/Users/jraczak/Desktop/nexus/app/views/requirements/new.html.erb where line #12 raised: | |
compile error | |
/Volumes/UserData/Users/jraczak/Desktop/nexus/app/views/requirements/new.html.erb:12: syntax error, unexpected ')', expecting kDO_COND or ':' or '\n' or ';' | |
...type in Requirement_Type.all );@output_buffer.safe_concat(' | |
^ | |
/Volumes/UserData/Users/jraczak/Desktop/nexus/app/views/requirements/new.html.erb:15: syntax error, unexpected kEND, expecting ')' | |
'); end |
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
<%= form_for([@project, @project.requirements.new]) do |f| %> | |
<div class="field"> | |
<%= f.label :name %></br> | |
<%= f.text_field :name %> | |
</div> | |
<div class="field"> | |
<%= f.label :detail %></br> | |
<%= f.text_field :detail %> |
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 `requirement_type_ids' for #<Project:0x1032c8770> | |
Extracted source (around line #13): | |
10: <div class="field"> | |
11: <%= f.label "Requirement Type:" %></br> |
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 #1 raised: | |
undefined method `requirements_path' for #<#<Class:0x1031e0f38>:0x102c9a538> | |
Extracted source (around line #1): | |
1: <%= form_for([@requirement, @project.requirements.new]) do |f| %> | |
2: <div class="field"> |