Skip to content

Instantly share code, notes, and snippets.

@raphaelcosta
Created September 28, 2010 01:25
Show Gist options
  • Save raphaelcosta/600228 to your computer and use it in GitHub Desktop.
Save raphaelcosta/600228 to your computer and use it in GitHub Desktop.
Association named 'databases' was not found; perhaps you misspelled it?
Rails.root: /Users/raphaelwc/Ruby Projects/ngforms
Application Trace | Framework Trace | Full Trace
meta_where (0.9.4) lib/meta_where/join_dependency.rb:19:in `build'
meta_where (0.9.4) lib/meta_where/join_dependency.rb:27:in `build'
meta_where (0.9.4) lib/meta_where/join_dependency.rb:26:in `each'
meta_where (0.9.4) lib/meta_where/join_dependency.rb:26:in `build'
activerecord (3.0.0) lib/active_record/associations.rb:1849:in `initialize'
meta_search (0.9.4) lib/meta_search/builder.rb:155:in `new'
meta_search (0.9.4) lib/meta_search/builder.rb:155:in `build_join_dependency'
meta_search (0.9.4) lib/meta_search/builder.rb:40:in `initialize'
meta_search (0.9.4) lib/meta_search/searches/active_record.rb:31:in `new'
meta_search (0.9.4) lib/meta_search/searches/active_record.rb:31:in `search'
activerecord (3.0.0) lib/active_record/relation.rb:360:in `send'
activerecord (3.0.0) lib/active_record/relation.rb:360:in `method_missing'
activerecord (3.0.0) lib/active_record/relation.rb:120:in `scoping'
activerecord (3.0.0) lib/active_record/relation.rb:360:in `method_missing'
app/controllers/databases_controller.rb:33:in `index'
actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.0.0) lib/abstract_controller/base.rb:150:in `process_action'
actionpack (3.0.0) lib/action_controller/metal/rendering.rb:11:in `process_action'
actionpack (3.0.0) lib/abstract_controller/callbacks.rb:18:in `process_action'
activesupport (3.0.0) lib/active_support/callbacks.rb:450:in `_run__236292883__process_action__199225275__callbacks'
activesupport (3.0.0) lib/active_support/callbacks.rb:409:in `send'
activesupport (3.0.0) lib/active_support/callbacks.rb:409:in `_run_process_action_callbacks'
activesupport (3.0.0) lib/active_support/callbacks.rb:93:in `send'
activesupport (3.0.0) lib/active_support/callbacks.rb:93:in `run_callbacks'
class Database < ActiveRecord::Base
default_scope where(:deleted_at => nil)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment