fix searches
This commit is contained in:
@@ -6,15 +6,11 @@ class ApplicationController < ActionController::Base
|
||||
before_filter :initialize_cookies
|
||||
before_filter :set_title
|
||||
before_filter :set_started_at_session
|
||||
after_filter :log_memory_usage
|
||||
layout "default"
|
||||
|
||||
rescue_from User::PrivilegeError, :with => :access_denied
|
||||
|
||||
protected
|
||||
def log_memory_usage
|
||||
Rails.logger.info "\e[1;31mMemory usage:\e[0m #{Memorylogic.memory_usage}\t\e[1;31mParams:\e[0m #{params.inspect}\t\e[1;31mUser: \e[0m#{CurrentUser.id}"
|
||||
end
|
||||
|
||||
def access_denied
|
||||
previous_url = params[:url] || request.fullpath
|
||||
|
||||
@@ -14,7 +14,7 @@ class CommentsController < ApplicationController
|
||||
end
|
||||
|
||||
def search
|
||||
@search = Comment.search(params[:search])
|
||||
# @search = Comment.search(params[:search])
|
||||
end
|
||||
|
||||
def update
|
||||
|
||||
@@ -20,8 +20,7 @@ class DmailsController < ApplicationController
|
||||
end
|
||||
|
||||
def search
|
||||
@search = Dmail.search(params[:search])
|
||||
respond_with(@dmails)
|
||||
# @search = Dmail.search(params[:search])
|
||||
end
|
||||
|
||||
def show
|
||||
|
||||
@@ -22,7 +22,7 @@ class ForumPostsController < ApplicationController
|
||||
end
|
||||
|
||||
def search
|
||||
@search = ForumPost.search(params[:search])
|
||||
# @search = ForumPost.search(params[:search])
|
||||
end
|
||||
|
||||
def show
|
||||
|
||||
@@ -4,7 +4,7 @@ class NotesController < ApplicationController
|
||||
before_filter :pass_html_id, :only => [:create]
|
||||
|
||||
def search
|
||||
@search = Note.search(params[:search])
|
||||
# @search = Note.search(params[:search])
|
||||
end
|
||||
|
||||
def index
|
||||
|
||||
@@ -21,7 +21,7 @@ class PoolsController < ApplicationController
|
||||
end
|
||||
|
||||
def search
|
||||
@search = Pool.search(params[:search])
|
||||
# @search = Pool.search(params[:search])
|
||||
end
|
||||
|
||||
def show
|
||||
|
||||
@@ -8,6 +8,6 @@ class PostVersionsController < ApplicationController
|
||||
end
|
||||
|
||||
def search
|
||||
@search = PostVersion.search(params[:search])
|
||||
# @search = PostVersion.search(params[:search])
|
||||
end
|
||||
end
|
||||
|
||||
@@ -21,7 +21,7 @@ class UsersController < ApplicationController
|
||||
end
|
||||
|
||||
def search
|
||||
@search = User.search(params[:search])
|
||||
# @search = User.search(params[:search])
|
||||
end
|
||||
|
||||
def show
|
||||
|
||||
Reference in New Issue
Block a user