Someone else found this before I saw yours, but that is the problem. I assumed that scaffold would know what the primary key is , because it was identified in the migrated schema:
schema.rb create_table "dogs", :primary_key => "dog_id", :force => true do |t| t.string "color", :limit => 20 t.string "gender", :limit => 20 t.string "dog_name", :limit => 20 end Thanks for your help! Colin Law wrote in post #961671: > On 15 November 2010 19:20, Bob T. <li...@ruby-forum.com> wrote: >> When I move from learning mode to development mode, I will need to write >> code against existing databases, so I can't maintain the database source >> code in ruby. > > Did you put > set_primary_key "dog_id" > in the the dog model? > > Colin -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.