-
Notifications
You must be signed in to change notification settings - Fork 2
Configuration
davydotcom edited this page Feb 17, 2012
·
2 revisions
Spud Search Supports several configuration options in your environment.rb file.
Spud::Search.configure do |config|
config.base_layout = "application"
config.content_for = nil
end
The above code block could be copied in your environment.rb file as these are the default values. But what do they all do you may ask?
config.base_layout = "application"
This defines the base layout to be used when rendering the search result page.
config.content_for = nil
This allows you to configure wether or not the search results will be rendered into a content_for block. you can pass a symbol (i.e. :inner_left)