Class: Thredded::PostPermalinksController

Inherits:
ApplicationController show all
Defined in:
app/controllers/thredded/post_permalinks_controller.rb

Instance Method Summary collapse

Methods included from UrlsHelper

#delete_post_path, #edit_post_path, #edit_preferences_path, #edit_preferences_url, #mark_unread_path, #permalink_path, #post_path, #post_url, #quote_post_path, #search_path, #topic_path, #topic_url, #user_path

Instance Method Details

#showObject



5
6
7
8
9
# File 'app/controllers/thredded/post_permalinks_controller.rb', line 5

def show
  post = Thredded::Post.find(params[:id])
  authorize post, :read?
  redirect_to post_url(post, user: thredded_current_user), status: :found
end