From: Joe dude Date: 2009-11-30T10:50:20+09:00 Subject: NoMethodError at /delete/1 private method `delete'... Hello, I'm trying to work through the 'Meet Sinatra' PeepCode screencast and I'm stuck trying to delete an entry. I'm receiving this error while attempting to delete a file and database entry: NoMethodError at /delete/1 private method `delete' called for # * file: adserver.rb * location: GET /delete/:id * line: 72 Here's the entire adserver.rb file: http://pastie.org/719776 Here's the handler that's causing problems: http://pastie.org/719777 The error is being caused by: "ad.delete" When the URL that is supposed to remove the file and delete the db entry is visited (mysite.com/delete/1), the file is removed and then I receive the error that I posted above. Any feedback is appreciated. Thank you -- Posted via http://www.ruby-forum.com/.