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,