app/controllers/clientsportal_controller.rb
def show_projects
      @client = @current_client
      @projects = @client.projects
      render :action => "show_projects"
    rescue ActiveRecord::RecordNotFound
      flash[:notice] = "No such client"
      redirect_to :action => :index
    end
#
# Showing logged client his/her projects.
#
Showing logged client his/her projects.
Showing logged client his / her projects .
def show_projects
      @client = @current_client
      @projects = @client.projects
      render :action => "show_projects"
    rescue ActiveRecord::RecordNotFound
      flash[:notice] = "No such client"
      redirect_to :action => :index
    end
def show_projects @client = @current_client @projects = @client . projects render :action => "show_projects" rescue ActiveRecord :: RecordNotFound flash [ :notice ] = "No such client" redirect_to :action => :index end
Showing logged client his/her projects.
Showing logged client his / her projects .