X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/aa52ebe6749ba1ea43030f173bfe2101d0f77dc3..b948dd6d52afae8a9a76c228c16769dabaecc761:/app/views/diary_entry/new.rhtml?ds=sidebyside diff --git a/app/views/diary_entry/new.rhtml b/app/views/diary_entry/new.rhtml index d0a58cec5..16974fad2 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 :diary_entry do |f| %> + + + + + + + + + + + + + +
Subject<%= f.text_field :title, :size => 60 %>
Body<%= f.text_area :body, :cols => 80 %>
<%= submit_tag 'Save' %>
<% end %>