app/controllers/clientsportal_controller.rb
#
# Showing details of selected activity.
#
Showing details of selected activity.
Showing details of selected activity .
def show_activity
      @activity = Activity.find( params[:id] )
      raise ActiveRecord::RecordNotFound unless @activity.project.client == @current_client
      render :layout => false if params[:embed]
    rescue ActiveRecord::RecordNotFound
      flash[:notice] = "No such activity"
      redirect_to :action => :index
    end
def show_activity @activity = Activity . find ( params [ :id ] ) raise ActiveRecord :: RecordNotFound unless @activity . project . client == @current_client render :layout => false if params [ :embed ] rescue ActiveRecord :: RecordNotFound flash [ :notice ] = "No such activity" redirect_to :action => :index end
Showing details of selected activity.
Showing details of selected activity .