Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Rolling with Ruby on Rails Revisited, Part 2
Subject:   destroy.rhtml
Date:   2007-12-03 00:27:07
From:   TechG1rl
hi all,


For some reason the destroy.rhtml file was not created in views for recipe or category. So, when I try to delete either one, I get the template is missing. Could someone tell me what a destroy.rhtml file would contain, please? Thanks in advance.


have a great day!

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • destroy.rhtml
    2007-12-03 12:28:06  TechG1rl [View]

    Figured it out, I was missing part of the statement in the controller file, the destroy.rhtml file is not needed :) Works well. Now, I wonder, how we would tell the client, sorry cannot delete that category as there are recipes associated, or successfully deleted. I am guessing that we would use that javascript mentioned earlier in the tutorial. Thanks again for the tutorials!

    Cheers.