{"action":"opened","issue":{"url":"https://api.github.com/repos/ga-dc/pbj-project2/issues/133","labels_url":"https://api.github.com/repos/ga-dc/pbj-project2/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/ga-dc/pbj-project2/issues/133/comments","events_url":"https://api.github.com/repos/ga-dc/pbj-project2/issues/133/events","html_url":"https://github.com/ga-dc/pbj-project2/issues/133","id":99329974,"number":133,"title":"issue with ____","user":{"login":"siltastic","id":10377524,"avatar_url":"https://avatars.githubusercontent.com/u/10377524?v=3","gravatar_id":"","url":"https://api.github.com/users/siltastic","html_url":"https://github.com/siltastic","followers_url":"https://api.github.com/users/siltastic/followers","following_url":"https://api.github.com/users/siltastic/following{/other_user}","gists_url":"https://api.github.com/users/siltastic/gists{/gist_id}","starred_url":"https://api.github.com/users/siltastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siltastic/subscriptions","organizations_url":"https://api.github.com/users/siltastic/orgs","repos_url":"https://api.github.com/users/siltastic/repos","events_url":"https://api.github.com/users/siltastic/events{/privacy}","received_events_url":"https://api.github.com/users/siltastic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-06T00:55:47Z","updated_at":"2015-08-06T00:55:47Z","closed_at":null,"body":"I'm trying to incorporate comments on the print (similar to post) page to avoid creating a comment new page that redirects to the show page. I've checked all my models, migrations and the data tables, they seem to be correct. However, when I look in pry, it seems to receive all the comments, I have to use the singular instead of the plural.\r\n\r\n![Image of Error](http://cl.ly/c9zI/Screen%20Shot%202015-08-05%20at%208.49.18%20PM.png)\r\n\r\nHere are my models.\r\n```ruby\r\n# User\r\nclass User < ActiveRecord::Base\r\n  # Include default devise modules. Others available are:\r\n  # :confirmable, :lockable, :timeoutable and :omniauthable\r\n  devise :database_authenticatable, :registerable,\r\n         :recoverable, :rememberable, :trackable, :validatable\r\n  has_many :prints, dependent: :destroy\r\n  has_many :comments, dependent: :destroy\r\nend\r\n\r\n# Print\r\nclass Print < ActiveRecord::Base\r\n  has_many :comments, dependent: :destroy\r\n  belongs_to :user\r\nend\r\n\r\n# Comment\r\nclass Comment < ActiveRecord::Base\r\n  belongs_to :print\r\n  belongs_to :user\r\nend\r\n```\r\n\r\nHere are my migrations.\r\n```ruby\r\n# Prints\r\nclass CreatePrints < ActiveRecord::Migration\r\n  def change\r\n    create_table :prints do |t|\r\n      t.belongs_to :user\r\n      t.string :category\r\n      t.string :creator_individual\r\n      t.string :creator_company\r\n      t.string :title\r\n      t.string :photo\r\n      t.string :series\r\n      t.string :purchase_year\r\n      t.string :purchase_price\r\n      t.timestamps null: false\r\n    end\r\n  end\r\nend\r\n\r\n# Comments\r\nclass CreateComments < ActiveRecord::Migration\r\n  def change\r\n    create_table :comments do |t|\r\n      t.belongs_to :prints\r\n      t.integer :user_id\r\n      t.string :content\r\n      t.string :username\r\n      t.timestamps null: false\r\n    end\r\n  end\r\nend\r\n```\r\n\r\n```ruby\r\n# Comments Controller\r\n  def create\r\n    @print = Print.find(params[:print_id])\r\n    @comment = @print.comments.create(comment_params)\r\n\r\n    # Redirect it to the show page of the print.\r\n    redirect_to print_path(@print)\r\n  end\r\n\r\n# Comments in the print show page.\r\n<h2>Add Comments</h2>\r\n<%= form_for ([@print, @print.comments.build]) do |f| %>\r\n  <p>\r\n    <%= f.label :name  %><br>\r\n    <%= f.text_field :name %>\r\n  </p>\r\n  <p>\r\n    <%= f.label :text %><br>\r\n    <%= f.text_area :text %>\r\n  </p>\r\n<p> <%= f.submit %> </p>\r\n\r\n<% end %>\r\n```\r\n\r\nHelp."}}