ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Rolling with Ruby on Rails
Subject:   Couldn't find Recipe without an ID
Date:   2005-08-16 01:07:29
From:   SixSide
Response to: Couldn't find Recipe without an ID

I encountered the same problem. I ended up with a different solution:



<form action="../update/" method="POST">


becomes



<form action="../update/<%= @recipe.id %>" method="POST">


Would anyone like to offer an 'official' response as to which of these 2 methods is the prefered Rails way?


1 to 1 of 1
  1. Couldn't find Recipe without an ID
    2005-09-11 13:21:05  dankohn [View]

    • Couldn't find Recipe without an ID
      2005-09-13 06:12:04  Freewheelin [View]

    • Curt Hibbs photo Couldn't find Recipe without an ID
      2005-09-11 13:31:34  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

1 to 1 of 1