Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Rolling with Ruby on Rails Revisited
Subject:   is the code complete ?
Date:   2007-10-18 11:17:56
From:   miwi1142
Response to: is the code complete ?

When I go to http://localhost:3000/recipe
and click on create, and fill out the form,
the submit does not go through because category_id is not being preset. In fact category does not show up in the recipe screen, just like in your screenshot. How can I fix that?


Mysql::Error: #23000Column 'category_id' cannot be null: INSERT INTO recipes (`title`, `date`, `category_id`, `description`, `instructions`) VALUES('afdsfa', '2007-10-18', NULL, 'dfsafas', 'dfsafsafdsa')


Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • is the code complete ?
    2007-10-21 12:27:08  Bill Walton | [View]

    Hi,

    You're definitely not the first to ask the question ;-) The answer can be found in the second paragraph of my response just above, dated 2006-12-20.

    Best regards,
    Bill