app/controllers/clientsportal_controller.rb
def show_project_activities
      @project = @current_client.projects.find(params[:project_id])
      session[:year] ||= Time.now.year.to_s
      session[:month] ||= Time.now.month.to_s

      @activities = Activity.project_activities(@project.id, session[:month], session[:year])
    rescue ActiveRecord::RecordNotFound
      flash[:notice] = "No such project"
      redirect_to :action => "index"
    end
#
# Showing calendar with project activities. Client cannot see activities
# of other client's projects.
#
Showing calendar with project activities. Client cannot see activities
of other client's projects.
Showing calendar with project activities . Client cannot see activities of other client ' s projects .
def show_project_activities
      @project = @current_client.projects.find(params[:project_id])
      session[:year] ||= Time.now.year.to_s
      session[:month] ||= Time.now.month.to_s
      @activities = Activity.project_activities(@project.id, session[:month], session[:year])
    rescue ActiveRecord::RecordNotFound
      flash[:notice] = "No such project"
      redirect_to :action => "index"
    end
def show_project_activities @project = @current_client . projects . find ( params [ :project_id ] ) session [ :year ] ||= Time . now . year . to_s session [ :month ] ||= Time . now . month . to_s @activities = Activity . project_activities ( @project . id , session [ :month ] , session [ :year ] ) rescue ActiveRecord :: RecordNotFound flash [ :notice ] = "No such project" redirect_to :action => "index" end
Showing calendar with project activities.
Showing calendar with project activities .