diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2012-05-17 19:16:47 +1000 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2012-05-17 19:56:57 +1000 |
commit | 9fc5b456a000f5fada0edb7b483b14915fd90b83 (patch) | |
tree | bdf70b51d04550cacebf9d3a7e674552f5773e8d /guides/source | |
parent | a99417be2d28a703e9ffc45503d48dbdbfb1e1ef (diff) | |
download | rails-9fc5b456a000f5fada0edb7b483b14915fd90b83.tar.gz rails-9fc5b456a000f5fada0edb7b483b14915fd90b83.tar.bz2 rails-9fc5b456a000f5fada0edb7b483b14915fd90b83.zip |
[getting started] Fix index template after destroy action addition
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/getting_started.textile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile index 457d0caa9d..87e3aea2aa 100644 --- a/guides/source/getting_started.textile +++ b/guides/source/getting_started.textile @@ -1101,10 +1101,12 @@ You can call +destroy+ on Active Record objects when you want to delete them from the database. Note that we don't need to add a view for this action since we're redirecting to the +index+ action. -Finally, add a 'destroy' link to your +index+ action to wrap everything +Finally, add a 'destroy' link to your +index+ action template +(+app/views/posts/index.html.erb) to wrap everything together. <erb> +<h1>Listing Posts</h1> <table> <tr> <th>Title</th> |