]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/message/new.rhtml
Showing all messages in inbox, but sorting by date DESC and highlighting new ones...
[rails.git] / app / views / message / new.rhtml
index 4075d543e1e16d7c084b54e4b33ee342ef4c23b1..b2d31b84285df8e01675f8243eae14dd16f61bd7 100644 (file)
@@ -9,12 +9,12 @@
 
 <%= 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 />
 
-<%= link_to 'Back to my account', :controller => 'user', :action => 'account' %>
+<%= link_to 'Back to inbox', :controller => 'message', :action => 'inbox', :display_name => @user.display_name %>