Do you created the database with Rails or are you using a "legacy" database?
2009/6/25 amfeld20 <[email protected]> > > Hi all, > > I'm having trouble with the create action. I'm getting this error > right after clicking "Create" > > Request Failed (code 500, Internal Error) > > After more searching, it seems the record shows this is the problem: > > PGError: ERROR: insert or update on table "recipes" violates foreign > key constraint "recipes_category_fk" > DETAIL: Key (id)=(20) is not present in table "categories". > > (In my models, a recipe belongs_to a category, and a category has_many > recipes. A recipe also validates_presence_of a category). > > Any thoughts on what I should do? > > Next, with the update action, as I try to change attributes of a > recipe, the changes will go through, but not before a window pops up > with this error: > > RJS error: > > TypeError: $$("#recipes-update-4-form a.cancel").first().link is > undefined > > This one I'm a little less sure where to start looking. Any help > would be much appreciated! Thanks! > > > > -- Regards, Gabriel Sobrinho E-mail: [email protected] Phone: +55 31 8775 8378 Don't print this e-mail. The nature is thankful and your money also. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
