Forum: Ruby on Rails Error when trying Rolling with Ruby On Rails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Stephen Ng (Guest)
on 2006-03-07 10:05
(Received via mailing list)
Hi everyone!

Please excuse my ignorance!

I was working through the Rolling with Ruby tutorial to get a feel of
things. Everything seems to work until I tried editing as in the last
example in part 2 when I got the following error -

|Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use 

Extracted source (around line *#8*):

|5: <body>
6: <h1>Edit Recipe</h1>
8: <form action="../update/<%= %>" method="POST">
9: <input id="recipe_id" name="recipe[id]" size="30"
10: type="hidden" value="<%= %>" />
11: <p><b>Title</b><br>

|Can anyone explain what happened here? Since all the code is generated
by Rails scripts, I was wondering if I have some verison


Stephen Ng
pmt (Guest)
on 2006-03-07 10:16
Are you sure @recipe is not nil ??

This topic is locked and can not be replied to.