Class: Thredded::PostPermalinksController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Thredded::PostPermalinksController
- 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, #post_path, #post_url, #search_path, #topic_path, #topic_url, #user_path
Instance Method Details
#show ⇒ Object
4 5 6 7 8 |
# File 'app/controllers/thredded/post_permalinks_controller.rb', line 4 def show post = Post.find(params[:id]) post, :read? redirect_to post_url(post, user: thredded_current_user), status: :found end |