I am working through ScottGu's NerdDinner tutorials as an intro to
MVC. I created the Edit Action like so:

        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult Edit(int id, FormCollection formValues)
        {

            Dinner dinner = dinnerRepository.GetDinner(id);

            UpdateModel(dinner);

            dinnerRepository.Save();

            return RedirectToAction("Details", new { id =
dinner.DinnerID });
        }

but when I click on a dinner on the edit button in the details page, I
get a 404 error. Doesn't make much sense to me as I am sure the
ActionResult is present (says so in the 2nd line of code.)

Any ideas?

Reply via email to