aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/engines.textile
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2011-10-14 07:45:00 +1100
committerRyan Bigg <radarlistener@gmail.com>2011-10-14 18:44:39 +1100
commit690dd2f64c01985ece8690b9ac1c1ff2dfb6d968 (patch)
tree441a44891d84d01640ab1a701c08b15b669f257b /railties/guides/source/engines.textile
parent411613ab207d6ff61520ad78a10b046469db9a80 (diff)
downloadrails-690dd2f64c01985ece8690b9ac1c1ff2dfb6d968.tar.gz
rails-690dd2f64c01985ece8690b9ac1c1ff2dfb6d968.tar.bz2
rails-690dd2f64c01985ece8690b9ac1c1ff2dfb6d968.zip
[engines guide] correct render line is blorgh/comments/form
Diffstat (limited to 'railties/guides/source/engines.textile')
-rw-r--r--railties/guides/source/engines.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/engines.textile b/railties/guides/source/engines.textile
index 48c5cbf797..faa9dff8b8 100644
--- a/railties/guides/source/engines.textile
+++ b/railties/guides/source/engines.textile
@@ -244,7 +244,7 @@ Because the +has_many+ is defined inside a class that is inside the +Blorgh+ mod
Next, there needs to be a form so that comments can be created on a post. To add this, put this line underneath the call to +render @post.comments+ in +app/views/blorgh/posts/show.html.erb+:
<erb>
-<%= render "comments/form" %>
+<%= render "blorgh/comments/form" %>
</erb>
Next, the partial that this line will render needs to exist. Create a new directory at +app/views/blorgh/comments+ and in it a new file called +_form.html.erb+ which has this content to create the required partial: