Whenever I try to add an entry with just one category to my blog I get
this error:
ActiveRecord::RecordNotFound (Couldn’t find all Categories with IDs
(4,0)):
/vendor/rails/activerecord/lib/active_record/base.rb:1042:in
find_some' /vendor/rails/activerecord/lib/active_record/base.rb:1014:in
find_from_ids’
/vendor/rails/activerecord/lib/active_record/base.rb:416:in find' /app/controllers/admin/content_controller.rb:123:in
set_article_categories’
/app/controllers/admin/content_controller.rb:89:in new_or_edit' /app/controllers/admin/content_controller.rb:22:in
new’
/vendor/rails/actionpack/lib/action_controller/base.rb:1068:in
send' /vendor/rails/actionpack/lib/action_controller/base.rb:1068:in
perform_action_without_filters’
/vendor/rails/actionpack/lib/action_controller/filters.rb:635:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
call_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:600:in
proxy_before_and_after_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:597:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:470:in
call’
/vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
call_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call’
/vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
call_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call’
/vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
call_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:622:in
perform_action_without_benchmark' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue’
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
measure' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
perform_action_without_rescue’
/vendor/rails/actionpack/lib/action_controller/rescue.rb:81:in
perform_action' /vendor/rails/actionpack/lib/action_controller/base.rb:427:in
send’
/vendor/rails/actionpack/lib/action_controller/base.rb:427:in
process_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:627:in
process_without_session_management_support’
/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in
process' /vendor/rails/actionpack/lib/action_controller/base.rb:330:in
process’
/vendor/rails/railties/lib/dispatcher.rb:41:in dispatch' /vendor/rails/railties/lib/fcgi_handler.rb:168:in
process_request’
/vendor/rails/railties/lib/fcgi_handler.rb:143:in
process_each_request!' /vendor/rails/railties/lib/fcgi_handler.rb:142:in
with_signal_handler’
/vendor/rails/railties/lib/fcgi_handler.rb:142:in
process_each_request!' /vendor/rails/railties/lib/fcgi_handler.rb:141:in
each_cgi’
/usr/lib/ruby/1.8/fcgi.rb:597:in each' /usr/lib/ruby/1.8/fcgi.rb:597:in
each_cgi’
/vendor/rails/railties/lib/fcgi_handler.rb:141:in
process_each_request!' /vendor/rails/railties/lib/fcgi_handler.rb:55:in
process!’
/vendor/rails/railties/lib/fcgi_handler.rb:25:in `process!’
dispatch.fcgi:34
I’m running revision 1299 I believe, but I encountered this error when
I checked out the latest version a couple days ago, so I’m wondering
if it’s some DB tomfoolery.
Thanks in advance for any advice!
Incidentally, this is my first post, so apologies in advance for faux
pas
–
Jeremy W.
We think of the key, each in his prison
Thinking of the key, each confirms a prison
-T.S. Eliot, “The Waste Land”