On 23 February 2010 14:47, Butterson <[email protected]> wrote:
> Hello all. I'm new to RoR. I am having trouble trying to get a simple
> edit/update going. Everytime I hit submit, I get the following error:
> +++++++++++++++++++++
> Couldn't find Content without an ID
>
> i've been trying to figure this out for 3 days but no luck. The
> solutions on the web and books seem to explain that I need to have id
> passed to the controller, but I thought form_for @content should
> already take care of that. I would appreciate all the help i can get.
> Thanks.
>

The one bit of information you've missed out there is the url your
form has posted to. It should be something like:

http://your.site/contents/update/12345

The number at the end of the URL is the id of the "content" record you
are trying to update. If it's missing something's wrong somewhere. If
you view source of the html page before you post the form, where does
the form say it's going to post to?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to