Skip to content

Instantly share code, notes, and snippets.

@hrdwdmrbl
Created December 16, 2011 15:13
Show Gist options
  • Save hrdwdmrbl/1486411 to your computer and use it in GitHub Desktop.
Save hrdwdmrbl/1486411 to your computer and use it in GitHub Desktop.
Count does not work
companies.count
=> 3
companies.class
=> Array
companies[0]
=> #<Company id: 7, name: "company10", logo: nil, description: nil, number_of_employees: nil, creation_date: nil, headquarters: nil, website: nil, feed: nil, blog: nil, public_page: true>
companies[1]
=> #<Company id: 12, name: "HuWhere", logo: nil, description: "", number_of_employees: 2, creation_date: "2011-11-11", headquarters: "Montreal", website: "google.com", feed: "google.com", blog: "www.google.com", public_page: true>
companies[2]
=> #<Company id: 14, name: "HuWhere", logo: nil, description: "", number_of_employees: 2, creation_date: "2011-11-11", headquarters: "Montreal", website: "google.com", feed: "google.com", blog: "www.google.com", public_page: true>
companies[3]
=> #<Company id: 18, name: "agssdgsdg", logo: nil, description: "", number_of_employees: nil, creation_date: nil, headquarters: "", website: "", feed: "", blog: "", public_page: true>
companies=> [#<Company id: 7, name: "company10", logo: nil, description: nil, number_of_employees: nil, creation_date: nil, headquarters: nil, website: nil, feed: nil, blog: nil, public_page: true>,
#<Company id: 12, name: "HuWhere", logo: nil, description: "", number_of_employees: 2, creation_date: "2011-11-11", headquarters: "Montreal", website: "google.com", feed: "google.com", blog: "www.google.com", public_page: true>,
#<Company id: 14, name: "HuWhere", logo: nil, description: "", number_of_employees: 2, creation_date: "2011-11-11", headquarters: "Montreal", website: "google.com", feed: "google.com", blog: "www.google.com", public_page: true>,
#<Company id: 18, name: "agssdgsdg", logo: nil, description: "", number_of_employees: nil, creation_date: nil, headquarters: "", website: "", feed: "", blog: "", public_page: true>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment