This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
searchable do | |
text :xml, :boost => 2.0 | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
common: &common | |
solr: | |
hostname: localhost | |
port: 8983 | |
production: | |
<<: *common | |
development: | |
<<: *common |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.gem 'sunspot', :lib => 'sunspot' | |
config.gem 'sunspot_rails', :lib => 'sunspot/rails' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git-rm --cached log/development.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// There's probably a more concise solution, but I prefer clarity over conciseness | |
// Splits on any number of non-word characters. | |
// Apostrophes don't cause case-change. | |
function toCamelCase(str) { | |
if (str==null || str==undefined || str.length==0) return str; | |
str = str.replace(/'/g, ""); | |
var arr = str.split(/[^\w]+/g); // split on any sequence of one or more | |
// non-word chars. | |
var ret = ""; | |
// Look for the first non-zero-length String. |
NewerOlder