]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entries/new.html.erb
Refactor diary entry forms to use a custom form builder
[rails.git] / app / views / diary_entries / new.html.erb
index d71331fcf999d9451f0ff6419d8b92683b6b91f5..9d8ad61708b5104ff8f42c8251babd3a382bf850 100644 (file)
@@ -6,8 +6,6 @@
   <h1><%= @title %></h1>
 <% end %>
 
-<%= error_messages_for "diary_entry" %>
-
-<%= form_for @diary_entry do |f| %>
-  <%= render :partial => "form", :locals =>  { :f => f } %>
+<%= form_for @diary_entry, :builder => RichtextFormBuilder do |f| %>
+  <%= render :partial => "form", :locals => { :f => f } %>
 <% end %>