tag:support.flying-sphinx.com,2011-01-05:/discussions/problems/25-sinatra-rake-fsstart-issueFlying Sphinx: Discussion 2011-08-23T23:21:21Ztag:support.flying-sphinx.com,2011-01-05:Comment/87353122011-07-20T09:31:23Z2011-07-20T09:31:23ZSinatra rake fs:start issue<div><p>Ah, I guess ActiveSupport isn't adding all the extensions in
automatically.</p>
<p>Can you add this require statement to your Rakefile, after the
Bundler setup? I'll fix things up in flying-sphinx, but this is a
quick fix to check that it works:</p>
<pre>
<code>require 'active_support/core_ext/object/blank.rb'</code>
</pre></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/87353122011-07-20T09:46:01Z2011-07-20T09:46:04ZSinatra rake fs:start issue<div><p>It works :)</p>
<p>By the way, if you don't mind answering: how does FS know what
database my ActiveRecord model is linked to?</p></div>Yukitag:support.flying-sphinx.com,2011-01-05:Comment/87353122011-07-20T10:04:30Z2011-07-20T10:04:30ZSinatra rake fs:start issue<div><p>Good to know - although I'll just remove the
<code>present?</code> call - if it's not nil, then it's fine,</p>
<p>Flying Sphinx (and Thinking Sphinx) look at the underlying
database connection for the model, and pass those details
(database, host, port, username, password) through to the sphinx
configuration.</p></div>Pat Allan