diff options
Diffstat (limited to 'railties')
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 %> |