Refactor inbox and outbox paths to avoid display names in urls.
[rails.git] / app / views / messages / new.html.erb
index 73d0ede2aef1e20a22d856a50b7e22703c5191b0..e33bc176d107427b31678f9fbe2602111348a119 100644 (file)
@@ -16,7 +16,7 @@
     </div>
     <div class='buttons'>
       <%= submit_tag t('.send_button') %>
-      <%= link_to t('.back_to_inbox'), inbox_path(current_user), :class => 'deemphasize button' %>
+      <%= link_to t('.back_to_inbox'), inbox_messages_path, :class => 'deemphasize button' %>
     </div>
   </fieldset>
 <% end %>