From 9b170116681ca925a7e6ae794d018326016e65f5 Mon Sep 17 00:00:00 2001 From: manson Date: Thu, 3 Jul 2014 19:31:50 +0800 Subject: [PATCH] Fix hidden status --- app/controllers/personal_experiences_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/personal_experiences_controller.rb b/app/controllers/personal_experiences_controller.rb index 9df0a56..07cdc57 100644 --- a/app/controllers/personal_experiences_controller.rb +++ b/app/controllers/personal_experiences_controller.rb @@ -1,6 +1,6 @@ class PersonalExperiencesController < ApplicationController def index - experiences = Experience.all + experiences = Experience.where(:is_hidden=>false).all experience_list = experiences.collect do |experience| { "member" => experience.member_profile.name, @@ -27,7 +27,7 @@ class PersonalExperiencesController < ApplicationController def show params = OrbitHelper.params - experience = Experience.find_by(uid: params[:uid]) + experience = Experience.where(:is_hidden=>false).find_by(uid: params[:uid]) { "organizationt_title" => experience.organizationt_title,