Women in Technology

Hear us Roar



Article:
  Rolling with Ruby on Rails
Subject:   Runtime error
Date:   2006-03-07 06:47:03
From:   curth
Response to: Runtime error

Try downloading the source code for part one and comparing it with your source code:


http://www.onlamp.com/onlamp/2005/03/03/examples/cookbook_part2_0.13.1.zip

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Runtime error
    2006-03-18 08:14:47  visionary [View]

    Check your category_id values in the database. I think they need to be greater than 0. Like 1 or 2.
    • Runtime error
      2006-03-21 08:00:46  gattox [View]

      Maybe you've done the same error as me: in the recipe_controller.rb maybe you have written

      @recipes = Recipe.find(@params["id"])

      instead of:

      @recipe = Recipe.find(@params["id"])

      Arghhhh ... Ruby and plurals ....