Fix diary entry creation...
This commit is contained in:
parent
7b659f4f30
commit
a894e75a1d
2 changed files with 16 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
<%= error_messages_for 'diary_entry' %>
|
<%= error_messages_for 'diary_entry' %>
|
||||||
|
|
||||||
<% form_for :controller => 'diary_entry', :action => 'new' do |f| %>
|
<% form_for :diary_entry do |f| %>
|
||||||
<table>
|
<table>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th>Subject</th>
|
<th>Subject</th>
|
||||||
|
|
|
@ -9,10 +9,21 @@
|
||||||
|
|
||||||
<%= error_messages_for 'message' %>
|
<%= error_messages_for 'message' %>
|
||||||
|
|
||||||
<% form_tag :controller => 'message', :action => 'new' do %>
|
<% form_for :message do |f| %>
|
||||||
subject: <%= text_field 'message', 'title' %><br>
|
<table>
|
||||||
body: <%= text_area 'message', 'body' %><br>
|
<tr valign="top">
|
||||||
<%= submit_tag 'Send' %>
|
<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><%= f.submit_tag 'Send' %></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue