Skip to content

Instantly share code, notes, and snippets.

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 benhutton/507176 to your computer and use it in GitHub Desktop.
Save benhutton/507176 to your computer and use it in GitHub Desktop.
NoMethodError: undefined method `slugs' for nil:NilClass
.bundle/ruby/1.9.1/gems/friendly_id-3.0.4/lib/friendly_id/active_record_adapter/slug.rb:42:in `enable_name_reversion'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:178:in `evaluate_method'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:166:in `call'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:93:in `block in run'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:92:in `each'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:92:in `run'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:276:in `run_callbacks'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/callbacks.rb:344:in `callback'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/callbacks.rb:249:in `create_or_update_with_callbacks'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/base.rb:2573:in `save'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/validations.rb:1090:in `save_with_validation'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/dirty.rb:79:in `save_with_dirty'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:229:in `block in with_transaction_returning_status'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'
.bundle/ruby/1.9.1/gems/after_commit-1.0.7/lib/after_commit/connection_adapters.rb:12:in `transaction_with_callback'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:182:in `transaction'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:228:in `with_transaction_returning_status'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:196:in `block in save_with_transactions'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:196:in `save_with_transactions'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/associations/has_many_association.rb:61:in `insert_record'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/associations/association_proxy.rb:146:in `send'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/associations/association_proxy.rb:146:in `send'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/autosave_association.rb:323:in `block in save_collection_association'
.bundle/ruby/1.9.1/gems/will_paginate-2.3.14/lib/will_paginate/finder.rb:168:in `block in method_missing_with_paginate'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/associations/association_collection.rb:369:in `block in method_missing'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/associations/association_proxy.rb:215:in `each'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/associations/association_proxy.rb:215:in `method_missing'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/associations/association_collection.rb:369:in `method_missing'
.bundle/ruby/1.9.1/gems/will_paginate-2.3.14/lib/will_paginate/finder.rb:168:in `method_missing_with_paginate'
.bundle/ruby/1.9.1/gems/thinking-sphinx-1.3.18/lib/thinking_sphinx/active_record/has_many_association.rb:19:in `method_missing'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/autosave_association.rb:314:in `save_collection_association'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/autosave_association.rb:176:in `block in add_autosave_association_callbacks'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:178:in `evaluate_method'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:166:in `call'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:93:in `block in run'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:92:in `each'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:92:in `run'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:276:in `run_callbacks'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/callbacks.rb:344:in `callback'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/callbacks.rb:267:in `create_with_callbacks'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/base.rb:2915:in `create_or_update'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/callbacks.rb:250:in `create_or_update_with_callbacks'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/base.rb:2573:in `save'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/validations.rb:1090:in `save_with_validation'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/dirty.rb:79:in `save_with_dirty'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:229:in `block in with_transaction_returning_status'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'
.bundle/ruby/1.9.1/gems/after_commit-1.0.7/lib/after_commit/connection_adapters.rb:12:in `transaction_with_callback'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:182:in `transaction'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:228:in `with_transaction_returning_status'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:196:in `block in save_with_transactions'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:196:in `save_with_transactions'
vendor/plugins/cms/lib/cms/revisions.rb:161:in `save_without_timestamps!'
vendor/plugins/cms/lib/cms/revisions.rb:140:in `insert_revision'
vendor/plugins/cms/lib/cms/revisions.rb:34:in `save_was_revision'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:178:in `evaluate_method'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:166:in `call'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:93:in `block in run'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:92:in `each'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:92:in `run'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:276:in `run_callbacks'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/callbacks.rb:344:in `callback'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/callbacks.rb:318:in `valid_with_callbacks?'
vendor/plugins/cms/lib/cms/components/components.rb:99:in `block (2 levels) in validate_child_components'
.bundle/ruby/1.9.1/gems/will_paginate-2.3.14/lib/will_paginate/finder.rb:168:in `block in method_missing_with_paginate'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/associations/association_collection.rb:369:in `block in method_missing'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/associations/association_proxy.rb:215:in `each'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/associations/association_proxy.rb:215:in `method_missing'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/associations/association_collection.rb:369:in `method_missing'
.bundle/ruby/1.9.1/gems/will_paginate-2.3.14/lib/will_paginate/finder.rb:168:in `method_missing_with_paginate'
.bundle/ruby/1.9.1/gems/thinking-sphinx-1.3.18/lib/thinking_sphinx/active_record/has_many_association.rb:19:in `method_missing'
vendor/plugins/cms/lib/cms/components/components.rb:98:in `block in validate_child_components'
vendor/plugins/cms/lib/cms/components/components.rb:94:in `each'
vendor/plugins/cms/lib/cms/components/components.rb:94:in `validate_child_components'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:178:in `evaluate_method'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:166:in `call'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:90:in `block in run'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:90:in `each'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:90:in `run'
.bundle/ruby/1.9.1/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:276:in `run_callbacks'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/validations.rb:1110:in `valid?'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/callbacks.rb:315:in `valid_with_callbacks?'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/validations.rb:1089:in `save_with_validation'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/dirty.rb:79:in `save_with_dirty'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:229:in `block in with_transaction_returning_status'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'
.bundle/ruby/1.9.1/gems/after_commit-1.0.7/lib/after_commit/connection_adapters.rb:12:in `transaction_with_callback'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:182:in `transaction'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:228:in `with_transaction_returning_status'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:196:in `block in save_with_transactions'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:208:in `rollback_active_record_state!'
.bundle/ruby/1.9.1/gems/activerecord-2.3.8/lib/active_record/transactions.rb:196:in `save_with_transactions'
vendor/plugins/cms/lib/cms/edit_info.rb:64:in `parent_save'
vendor/plugins/cms/lib/cms/controller.rb:263:in `block in run_updates'
vendor/plugins/cms/lib/cms/controller.rb:257:in `each'
vendor/plugins/cms/lib/cms/controller.rb:257:in `run_updates'
vendor/plugins/cms/lib/cms/controller.rb:180:in `handle_updates'
vendor/plugins/cms/lib/cms/controller.rb:99:in `update'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment