From: Tom Hughes Date: Wed, 22 Aug 2007 00:06:28 +0000 (+0000) Subject: Improve diary post screen. X-Git-Tag: live~8164 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/169aac77d87744b72f43dd6bf8c806fd9aba0b48?hp=4016d8e2232e0fa2c26183cfe394c65eb2f13655 Improve diary post screen. --- diff --git a/app/views/diary_entry/new.rhtml b/app/views/diary_entry/new.rhtml index d0a58cec5..c0ddaef23 100644 --- a/app/views/diary_entry/new.rhtml +++ b/app/views/diary_entry/new.rhtml @@ -1,7 +1,18 @@ <%= error_messages_for 'diary_entry' %> -<% form_tag :controller => 'diary_entry', :action => 'new' do %> -subject<%= text_field 'diary_entry', 'title' %>
-body<%= text_area 'diary_entry', 'body' %>
- <%= submit_tag 'Save' %> +<% form_for :controller => 'diary_entry', :action => 'new' do |f| %> + + + + + + + + + + + + + +
Subject<%= f.text_field :title, :size => 60 %>
Body<%= f.text_area :body, :cols => 80 %>
<%= submit_tag 'Save' %>
<% end %>