aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2005-08-17 19:36:22 +0000
committerNicholas Seckar <nseckar@gmail.com>2005-08-17 19:36:22 +0000
commit7ab71d389225ed9051de9252d82bcced997064cb (patch)
tree9f40930f170ce85aa385748fef1f4ddcfda4d973
parent7f32e83f255bdb07e1385cf083888514d88641af (diff)
downloadrails-7ab71d389225ed9051de9252d82bcced997064cb.tar.gz
rails-7ab71d389225ed9051de9252d82bcced997064cb.tar.bz2
rails-7ab71d389225ed9051de9252d82bcced997064cb.zip
Replace render_partial with render :partial in scaffold generator
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2030 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--railties/CHANGELOG2
-rw-r--r--railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml2
-rw-r--r--railties/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml2
3 files changed, 4 insertions, 2 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG
index 911ad7dc78..a980570de4 100644
--- a/railties/CHANGELOG
+++ b/railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Replace render_partial with render :partial in scaffold generator [Nicholas Seckar]
+
* Make the rake tasks (like fresh_rails_without_docs_using_links) aware of switchtower
* Added -w flag to ps in process/reaper #1934 [Scott Barron]
diff --git a/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml b/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml
index 0e92acb103..2db0909cb8 100644
--- a/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml
+++ b/railties/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml
@@ -1,7 +1,7 @@
<h1>Editing <%= singular_name %></h1>
<%%= start_form_tag :action => 'update<%= @suffix %>', :id => @<%= singular_name %> %>
- <%%= render_partial 'form' %>
+ <%%= render :partial => 'form' %>
<%%= submit_tag 'Edit' %>
<%%= end_form_tag %>
diff --git a/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml b/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml
index 8db70cd89d..286f850718 100644
--- a/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml
+++ b/railties/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml
@@ -1,7 +1,7 @@
<h1>New <%= singular_name %></h1>
<%%= start_form_tag :action => 'create<%= @suffix %>' %>
- <%%= render_partial 'form' %>
+ <%%= render :partial => 'form' %>
<%%= submit_tag "Create" %>
<%%= end_form_tag %>