User form_tag/end instead of start_form_tag/end_form_tag to avoid
deprecation warnings.
This commit is contained in:
parent
f73ec4536f
commit
aa52ebe674
10 changed files with 22 additions and 23 deletions
|
@ -9,11 +9,11 @@
|
|||
|
||||
<%= error_messages_for 'message' %>
|
||||
|
||||
<%= start_form_tag :controller => 'message', :action => 'new' %>
|
||||
<% form_tag :controller => 'message', :action => 'new' do %>
|
||||
subject: <%= text_field 'message', 'title' %><br>
|
||||
body: <%= text_area 'message', 'body' %><br>
|
||||
<%= submit_tag 'Send' %>
|
||||
<% end_form_tag %>
|
||||
<% end %>
|
||||
|
||||
<br />
|
||||
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
<td><%= link_to 'reply', :controller => 'message', :action => 'new', :user_id => @message.from_user_id %></td>
|
||||
</table>
|
||||
|
||||
<%= start_form_tag :controller => 'message', :action => 'mark', :message_id => @message.id %>
|
||||
<% form_tag :controller => 'message', :action => 'mark', :message_id => @message.id do %>
|
||||
<%= submit_tag 'Mark as read' %>
|
||||
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue