X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c20160d313286739fc14e89162a3afff6ccc906f..55e3f90dd47bd96970cd0d9e55fb56e70dd8cc75:/app/controllers/diary_entries_controller.rb?ds=sidebyside diff --git a/app/controllers/diary_entries_controller.rb b/app/controllers/diary_entries_controller.rb index 760c9a301..27099cd9c 100644 --- a/app/controllers/diary_entries_controller.rb +++ b/app/controllers/diary_entries_controller.rb @@ -123,7 +123,7 @@ class DiaryEntriesController < ApplicationController # Subscribe user to diary comments @diary_entry.subscriptions.create(:user => current_user) - redirect_to :action => "index", :display_name => current_user.display_name + redirect_to diary_entry_path(@diary_entry.user, @diary_entry) else render :action => "new" end