Permalink
Browse files

Add another partial as an override point to avoid having to override …

…the entire _form.html.erb partial inside pages when all I want to do is add another text field below the page title.
  • Loading branch information...
1 parent 3cec44c commit 2ebea3038275e2abea719b2c0ea54f6533f92abf @parndt parndt committed Sep 15, 2010
@@ -11,6 +11,12 @@
<%= f.label :title %>
<%= f.text_field :title, :class => "larger widest" %>
</div>
+
+ <%= render :partial => "form_fields_after_title",
+ :locals => {
+ :f => f
+ } %>
+
<div class='field'>
<%= render :partial => "form_page_parts",
:locals => {
@@ -0,0 +1 @@
+<%# Intentionally empty, useful override point to add extra fields. %>

0 comments on commit 2ebea30

Please sign in to comment.