]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/new.rhtml
Adding 'New diary post' link to main Users' diaries page to help logged-in users...
[rails.git] / app / views / diary_entry / new.rhtml
index ead58944ce521e5e290c6db14b3c299434537b3e..16974fad2f46525b2030651a75f9a98ef1ac6351 100644 (file)
@@ -1,7 +1,18 @@
 <%= error_messages_for 'diary_entry' %>
 
-<%= start_form_tag :controller => 'diary_entry', :action => 'new' %>
-subject<%= text_field 'diary_entry', 'title' %><br>
-body<%= text_area 'diary_entry', 'body' %><br>
-  <%= submit_tag 'Save' %>
-<% end_form_tag %>
+<% form_for :diary_entry do |f| %>
+  <table>
+    <tr valign="top">
+      <th>Subject</th>
+      <td><%= f.text_field :title, :size => 60 %></td>
+    </tr>
+    <tr valign="top">
+      <th>Body</th>
+      <td><%= f.text_area :body, :cols => 80 %></td>
+    </tr>
+    <tr>
+      <th></th>
+      <td><%= submit_tag 'Save' %></td>
+    </tr>
+  </table>
+<% end %>