Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActiveRecord::MissingAttributeError: missing attribute: annotation #1

Closed
obrie opened this issue Aug 6, 2011 · 2 comments
Closed
Assignees

Comments

@obrie
Copy link
Member

obrie commented Aug 6, 2011

closer opened this issue

Hello,

I catched following exception:

@@@
/Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body_row.rb:30:in send’ /Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body_row.rb:30:ininitialize’
/Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body_row.rb:28:in each’ /Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body_row.rb:28:ininitialize’
/Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body.rb:92:in new’ /Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body.rb:92:inbuild_row’
/Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body.rb:81:in build’ /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:1907:ineach_with_index’
/Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body.rb:80:in each’ /Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body.rb:80:ineach_with_index’
/Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/body.rb:80:in build’ /Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper/collection_table.rb:41:inbuild’
/Users/closer/Projects/test_table_helper/vendor/plugins/table_helper/lib/table_helper.rb:173:in collection_table’ ./test/unit/post_test.rb:12:intest_wrong_annotation_column’
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in __send__’ /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:inrun’

@@@

because I excluded ’annotation’ column from SQL query.

You can reproduce error using attached file (run one unit-test).

Can you fix it?

Thanks

P.S.
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
Rails 2.2.2
MAC OS 1.5.4

original LH ticket

This ticket has 1 attachment(s).

@ghost ghost assigned obrie Aug 6, 2011
@obrie
Copy link
Member Author

obrie commented Aug 6, 2011

(from [b9e107d]) Fix default headers including all model columns when using :select in the collection query [#1 state:resolved]
http://github.com/pluginaweek/table_helper/commit/b9e107d93ebc73d10a310ccd12401054057b822b

@obrie
Copy link
Member Author

obrie commented Aug 6, 2011

Thanks for the bug report!

@obrie obrie closed this as completed Aug 6, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant