Category troubles:

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:infind_from_ids’
/vendor/rails/activerecord/lib/active_record/base.rb:416:in find' /app/controllers/admin/content_controller.rb:123:inset_article_categories’
/app/controllers/admin/content_controller.rb:89:in new_or_edit' /app/controllers/admin/content_controller.rb:22:innew’
/vendor/rails/actionpack/lib/action_controller/base.rb:1068:in
send' /vendor/rails/actionpack/lib/action_controller/base.rb:1068:inperform_action_without_filters’
/vendor/rails/actionpack/lib/action_controller/filters.rb:635:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:641:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:600:inproxy_before_and_after_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:597:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:470:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:641:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:640:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:640:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:641:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:640:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:641:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:640:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:641:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:640:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:640:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:622:in
perform_action_without_benchmark' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:inperform_action_without_rescue’
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in
measure' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:inperform_action_without_rescue’
/vendor/rails/actionpack/lib/action_controller/rescue.rb:81:in
perform_action' /vendor/rails/actionpack/lib/action_controller/base.rb:427:insend’
/vendor/rails/actionpack/lib/action_controller/base.rb:427:in
process_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:627:inprocess_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:inprocess’
/vendor/rails/railties/lib/dispatcher.rb:41:in dispatch' /vendor/rails/railties/lib/fcgi_handler.rb:168:inprocess_request’
/vendor/rails/railties/lib/fcgi_handler.rb:143:in
process_each_request!' /vendor/rails/railties/lib/fcgi_handler.rb:142:inwith_signal_handler’
/vendor/rails/railties/lib/fcgi_handler.rb:142:in
process_each_request!' /vendor/rails/railties/lib/fcgi_handler.rb:141:ineach_cgi’
/usr/lib/ruby/1.8/fcgi.rb:597:in each' /usr/lib/ruby/1.8/fcgi.rb:597:ineach_cgi’
/vendor/rails/railties/lib/fcgi_handler.rb:141:in
process_each_request!' /vendor/rails/railties/lib/fcgi_handler.rb:55:inprocess!’
/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 :slight_smile:


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”