S
steven masala
did a tutorial on ruby on rails site, however the edit isnt working
heres the template
-------------------------------
<html>
<head>
<title>My Todo List</title>
</head>
<body>
<h1>My Todo List</h1>
<% @tasklists.each do |tasklist| %>
<%= check_box("task", "done") %>
<%= tasklist.task %>
<%= link_to("Edit", :action => "edit", :id => @tasklists.id) %>
<br />
<%end%>
</body>
</html>
--------------------------------
when i press edit it gives me
ActiveRecord::RecordNotFound in Tasklist#edit
Couldn't find Tasklist with ID=29134536
but if i type in the address box
http://127.0.0.1:3000/tasklist/edit/1
i get the task i want to edit
can anyone help me?!
thank
steve
heres the template
-------------------------------
<html>
<head>
<title>My Todo List</title>
</head>
<body>
<h1>My Todo List</h1>
<% @tasklists.each do |tasklist| %>
<%= check_box("task", "done") %>
<%= tasklist.task %>
<%= link_to("Edit", :action => "edit", :id => @tasklists.id) %>
<br />
<%end%>
</body>
</html>
--------------------------------
when i press edit it gives me
ActiveRecord::RecordNotFound in Tasklist#edit
Couldn't find Tasklist with ID=29134536
but if i type in the address box
http://127.0.0.1:3000/tasklist/edit/1
i get the task i want to edit
can anyone help me?!
thank
steve