Last active
August 29, 2015 14:03
-
-
Save augustoppimenta/21df0e60e4cb14b9aa4d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def show | |
@post = current_manager.post.find(params[:id]) | |
unless @post | |
flash[:error] = 'Você não permissão para acessar essa página' | |
redirect_to manager_root_path | |
end | |
add_breadcrumb "Post ##{@post.id}", request.url | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment