app/controllers/projects_controller.rb
def search
    params[:search]||= {}
    
    @projects = Project.search( :name=> params[:search][:name], :client_id=> params[:search][:client_id] )   
    render :partial => 'list'
  end
#
# Searches through projects using project name and client_id, rendering list of results
#

Searches through projects using project name and client_id, rendering list of results
Searches through projects using project name and client_id rendering list of results
def search
    params[:search]||= {}
    @projects = Project.search( :name=> params[:search][:name], :client_id=> params[:search][:client_id] )   
    render :partial => 'list'
  end
def search params [ :search ] ||= { } @projects = Project . search ( :name => params [ :search ] [ :name ] , :client_id => params [ :search ] [ :client_id ] ) render :partial => 'list' end
Searches through projects using project name and client_id, rendering list of results
Searches through projects using project name and client_id rendering list of results