From: Jeff Wood Date: 2005-12-06T02:47:53+09:00 Subject: Re: a todo list ------=_Part_34038_27441824.1133804866232 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Actually, I believe: <%=3D link_to("Edit", :action =3D> "edit", :id =3D> @tasklists.id) %> should be <%=3D link_to("Edit", :action =3D> "edit", :id =3D> tasklist) %> ... should be all you need. j. On 12/5/05, steven masala wrote: > > did a tutorial on ruby on rails site, however the edit isnt working > > heres the template > ------------------------------- > > > My Todo List > > > >

My Todo List

> > <% @tasklists.each do |tasklist| %> > <%=3D check_box("task", "done") %> > <%=3D tasklist.task %> > <%=3D link_to("Edit", :action =3D> "edit", :id =3D> @tasklists.id) %> >
> <%end%> > > > > > > -------------------------------- > > when i press edit it gives me > > ActiveRecord::RecordNotFound in Tasklist#edit > > Couldn't find Tasklist with ID=3D29134536 > > > 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 > > -- > Posted via http://www.ruby-forum.com/. > > -- "Remember. Understand. Believe. Yield! -> http://ruby-lang.org" Jeff Wood ------=_Part_34038_27441824.1133804866232--