From: Tom Hughes Date: Wed, 22 Aug 2007 00:19:58 +0000 (+0000) Subject: Fix diary entry creation... X-Git-Tag: live~8720 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/a894e75a1d898804ea6bc41c73384135ed83e87e?ds=sidebyside Fix diary entry creation... --- diff --git a/app/views/diary_entry/new.rhtml b/app/views/diary_entry/new.rhtml index c0ddaef23..16974fad2 100644 --- a/app/views/diary_entry/new.rhtml +++ b/app/views/diary_entry/new.rhtml @@ -1,6 +1,6 @@ <%= error_messages_for 'diary_entry' %> -<% form_for :controller => 'diary_entry', :action => 'new' do |f| %> +<% form_for :diary_entry do |f| %> diff --git a/app/views/message/new.rhtml b/app/views/message/new.rhtml index b2d31b842..44ef84dfc 100644 --- a/app/views/message/new.rhtml +++ b/app/views/message/new.rhtml @@ -9,10 +9,21 @@ <%= error_messages_for 'message' %> -<% form_tag :controller => 'message', :action => 'new' do %> -subject: <%= text_field 'message', 'title' %>
-body: <%= text_area 'message', 'body' %>
- <%= submit_tag 'Send' %> +<% form_for :message do |f| %> +
Subject
+ + + + + + + + + + + + +
Subject<%= f.text_field :title, :size => 60 %>
Body<%= f.text_area :body, :cols => 80 %>
<%= f.submit_tag 'Send' %>
<% end %>