app/controllers/clientsportal_controller.rb
def show_project
      @project = @current_client.projects.find( params[:id] )
      @activities = @project.activities
      render :layout => false
    rescue ActiveRecord::RecordNotFound
      flash[:notice] = "No such project"
      redirect_to :action => "index"
    end
#
# Showing client's selected project details. Client cannot see not his/her
# projects.
#
Showing client's selected project details. Client cannot see not his/her
projects.
Showing client ' s selected project details . Client cannot see not his / her projects .
def show_project
      @project = @current_client.projects.find( params[:id] )
      @activities = @project.activities
      render :layout => false
    rescue ActiveRecord::RecordNotFound
      flash[:notice] = "No such project"
      redirect_to :action => "index"
    end
def show_project @project = @current_client . projects . find ( params [ :id ] ) @activities = @project . activities render :layout => false rescue ActiveRecord :: RecordNotFound flash [ :notice ] = "No such project" redirect_to :action => "index" end
Showing client's selected project details.
Showing client ' s selected project details .