From a894e75a1d898804ea6bc41c73384135ed83e87e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 22 Aug 2007 00:19:58 +0000 Subject: [PATCH] Fix diary entry creation... --- app/views/diary_entry/new.rhtml | 2 +- app/views/message/new.rhtml | 19 +++++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) 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 %>
-- 2.39.5