Hello,
I'm currently working through the Sinatra screencast and have received
an error I don't really understand.
I'm at the point of deleting the first ad (~00:37:00) but Sinatra
complains about the delete method in the delete handler.
Here's the delete handler code:
http://pastie.org/719654
And here's the error I'm receiving:
NoMethodError at /delete/1
private method `delete' called for #<Ad:0x102945180>
* file: adserver.rb
* location: GET /delete/:id
* line: 72
Line 72 is "ad.delete"
I dont think I typed anything wrong. Nothing I can see anyway. Am I
missing something? My entire adserver.rb file looks like this:
http://pastie.org/719652
Thank you,
Joe