Re-namespacing a bit to clear out some fairly old stuff from the top level
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# Filters added to this controller apply to all controllers in the application.
|
||||
# Likewise, all the methods added will be available for all controllers.
|
||||
|
||||
class ApplicationController < ActionController::Base
|
||||
helper :all # include all helpers, all the time
|
||||
protect_from_forgery # See ActionController::RequestForgeryProtection for details
|
||||
|
||||
# Scrub sensitive parameters from your log
|
||||
# filter_parameter_logging :password
|
||||
end
|
@@ -0,0 +1,18 @@
|
||||
require 'open-uri'
|
||||
require 'rexml/document'
|
||||
|
||||
|
||||
class SolrController < ApplicationController
|
||||
include SolrHelper
|
||||
|
||||
def simple_query
|
||||
@search = request[:q]
|
||||
@results = []
|
||||
if @search != nil
|
||||
@results = get_results(@search)
|
||||
end
|
||||
end
|
||||
|
||||
def index
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user