| Article: |
Rolling with Ruby on Rails, Part 2 | |
| Subject: | Custom Delete Method Not Needed | |
| Date: | 2005-10-14 21:53:20 | |
| From: | dkeo | |
|
In part 1 of this article your wrote: "A single line of code, scaffold :recipe, brought everything to life...With virtually no work on our part, it created the actions list, show, edit, and delete." And further: "we can leave the scaffolding in place and slowly, one at a time, provide our own versions of the actions and views. Each time you create one of the actions or views it will override the scaffold's version."
|
||
Showing messages 1 through 4 of 4.
-
Custom Delete Method Not Needed
2005-10-14 22:43:50 Curt Hibbs |
[View]
Good catch! -
Custom Delete Method Not Needed
2006-07-30 11:41:11 Damaris [View]
Yes, I've noticed that now I have done this second part. However, when I try to make this into practice, I write:
<%= link_to "Mydelete", :action => "destroy", :id => recipe.id %>
in the list.rhtml, but this does not work, it simply does nothing!!
Suggestions? -
Custom Delete Method Not Needed
2007-01-25 16:02:06 bhoarl [View]
I wish someone would have answered you, as I am having the same problem. I'm running locomotive -- perhaps it has to do with which environment it's using (testing/development/production)??
Thanks for any help! -
Custom Delete Method Not Needed
2007-01-25 19:30:35 Curt Hibbs |
[View]
You might want to try the updated version of the tutorial:
http://www.oreillynet.com/pub/a/onlamp/2006/12/14/revisiting-ruby-on-rails-revisited.html
http://www.oreillynet.com/pub/a/onlamp/2007/01/05/revisiting-ruby-on-rails-revisited-2.html
Curt


