This file contains 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
# inside class Application < Rails::Application block | |
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')] |
This file contains 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
[2012-06-19 13:42:16,472][WARN ][cluster.metadata ] [Hydron] [test] failed to create | |
org.elasticsearch.indices.IndexCreationException: [test] failed to create index | |
at org.elasticsearch.indices.InternalIndicesService.createIndex(InternalIndicesService.java:288) | |
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:242) | |
at org.elasticsearch.cluster.service.InternalClusterService$2.run(InternalClusterService.java:211) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) | |
at java.lang.Thread.run(Thread.java:680) | |
Caused by: java.lang.IllegalArgumentException: Custom Analyzer [default] failed to find filter under name [polish] | |
at org.elasticsearch.index.analysis.CustomAnalyzerProvider.build(CustomAnalyzerProvider.java:75) |
This file contains 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
require 'wrest' | |
require 'dalli' | |
module Wrest::Caching | |
class Memcached | |
def initialize(server_urls=nil, options={}) | |
@memcached = Dalli::Client.new(server_urls, options) | |
end |
This file contains 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
- puts this in application.rb | |
# Sprockets::HjsTemplate | |
Sprockets.register_engine '.hjs', Sprockets::HjsTemplate | |
- add those gems in Gemfile: | |
gem 'haml' | |
gem 'eco' |
NewerOlder