Skip to content

Instantly share code, notes, and snippets.

Created December 17, 2012 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4318743 to your computer and use it in GitHub Desktop.
Save anonymous/4318743 to your computer and use it in GitHub Desktop.
(rdb:5) Morphology::MatrixView
Morphology::MatrixView(Table doesn\'t exist)
(rdb:5) Morphology::MatrixView.table_name
"morphology_matrix_view"
(rdb:4) Morphology::MatrixView.all.first
#<Morphology::MatrixView name: "anex", description: nil, copied_from: nil, created_by: "", created_at: "2012-12-14 18:40:51", updated_by: "", updated_at: "2012-12-14 18:40:51", id: 7, matrix_id: 7, copied_from_id: nil, project_id: 81>
(rdb:4) Morphology::MatrixView.all.first.name
"anex"
(rdb:4) Morphology::MatrixView.where(:name => 'anex')
INTERNAL ERROR!!! No attribute named `name` exists for table `morphology_matrix_view`
(rdb:12) Morphology::MatrixView.where("name = ?", "anex")
[#<Morphology::MatrixView name: "anex", description: nil, copied_from: nil, created_by: "", created_at: "2012-12-14 18:40:51", updated_by: "", updated_at: "2012-12-14 18:40:51", id: 7, matrix_id: 7, copied_from_id: nil, project_id: 81>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment