app/controllers/clientsportal_controller.rb
#
# Showing details of selected invoice.
#
Showing details of selected invoice.
Showing details of selected invoice .
def show_invoice
      @invoice = @current_client.invoices.find( params[:id] )
      render :layout => false if params[:embed]
    rescue
      flash[:notice] = "No such invoice"
      redirect_to :action => :index
    end
def show_invoice @invoice = @current_client . invoices . find ( params [ :id ] ) render :layout => false if params [ :embed ] rescue flash [ :notice ] = "No such invoice" redirect_to :action => :index end
Showing details of selected invoice.
Showing details of selected invoice .