Article:
  Rolling with Ruby on Rails
Subject:   edit.rhtml is broken
Date:   2005-11-20 23:14:26
From:   allenu@gmail.com
I get this when I create edit.rhtml as instructed above:



NoMethodError in Recipe#edit


Showing app/views/recipe/edit.rhtml where line #13 raised:


undefined method `title' for #<Array:0x36bb3a8>


Extracted source (around line #13):


10: type="hidden" value="<%= @recipe.id %>" />
11:

Title

12: <input id="recipe_title" name="recipe[title]" size="30"
13: type="text" value="<%= @recipe.title %>" />
14:


15:

Description

16: <input id="recipe_description" name="recipe[description]"


</pre>

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • IGNORE ABOVE!
    2005-11-20 23:16:12  allenu@gmail.com [View]

    I checked my code and I typed find_all someplace that I should have used find. Works now. :-D