app/controllers/portfolios_controller.rb
# Destroys given portfolio and redirects to its parent group.
Destroys given portfolio and redirects to its parent group.
Destroys given portfolio and redirects to its parent group .
def destroy
    @portfolio.destroy
    flash[:notice] = t(:portfolio) + t(:deleted)
    redirect_to portfolios_path
  end
def destroy @portfolio . destroy flash [ :notice ] = t ( :portfolio ) + t ( :deleted ) redirect_to portfolios_path end
Destroys given portfolio and redirects to its parent group.
Destroys given portfolio and redirects to its parent group .