app/controllers/clipster/clips_controller.rb
def search
      @clips = Clip.search(params[:search_term]).page(params[:page])
      respond_to do |format|
        format.html { render :clips }
        format.json { render json: @clips }
        format.xml { render xml: @clips }
      end
    end
def search
      @clips = Clip.search(params[:search_term]).page(params[:page])
      respond_to do |format|
        format.html { render :clips }
        format.json { render json: @clips }
        format.xml { render xml: @clips }
      end
    end
GET /search?search_term=[term]
 GET /search.json?search_term=[term]
 GET /search.xml?search_term=[term]