Hi Pat, I've been working for a few hours now on installing sidekiq correctly. I don't think I've been successful because I still get the same error. At this point, I have to come to you for a little guidance - I apologize.
I pushed my rails app to Github so you could check it out: :git => git://github.com/lgorse/curiousbear.git :branch => sphinx :reference => 'e19532c94ab172b14631c0840152f4b759cb99c7' I'm stumped about what is going wrong and moving in the dark in terms of the installation - any help you can spare will be appreciated, much as I understand how in demand you are. On Thu, Apr 18, 2013 at 3:40 AM, Pat Allan <[email protected]> wrote: > Hi Laurent > > Sorry for not getting back to you sooner - I've been running around > preparing for a trip (I'm at the airport now). > > Currently, Delayed Job deltas do not work with Flying Sphinx if you're > using Thinking Sphinx v3. There is a Sidekiq option that *does* work (I use > it in a project or two), if you're willing to change queue libraries: > > gem 'ts-sidekiq-delta', > :git => 'git://github.com/pat/ts-resque-delta.git', > :branch => 'sidekiq', > :ref => '5bae80758c' > > As long as Sidekiq is running and processing the ts_delta queue, it should > work fine. > > I do want to get Delayed Job (and Resque) supported with TS v3 on Flying > Sphinx - perhaps I'll have time to make some progress with that on my > flights. > > Cheers > > -- > Pat > > On 18/04/2013, at 8:31 PM, [email protected] wrote: > > > Hi Pat, > > > > I implemented TS delayed_delta on my app and I get a strange error > message when I load a view. The view loads a restaurant summary. > > > > Here is the message: > > > > undefined method `toggle' for nil:NilClass > > > > Extracted source (around line #1): > > > > 1: <% set_google_restaurant_values(result) %>2: <li > id="restaurant_summary">3: <div id = "restaurant_summary_wrapper">4: <div > id="restaurant_summary_left"> > > > > Trace of template inclusion: > app/views/restaurants/_google_restaurants.html.erb, > app/views/restaurants/google_search.js.erb > > > > Rails.root: /home/lgorse/www/curiousbear > > > > Application Trace | Framework Trace | Full Trace > > app/helpers/restaurants_helper.rb:106:in > `set_google_restaurant_values'app/views/restaurants/_google_restaurant_summary.html.erb:1:in > `_app_views_restaurants__google_restaurant_summary_html_erb___1466256548253147453_43999960'app/views/restaurants/_google_restaurants.html.erb:4:in > `_app_views_restaurants__google_restaurants_html_erb__2975153352808883957_43673500'app/views/restaurants/google_search.js.erb:2:in > `_app_views_restaurants_google_search_js_erb__2134691260687145231_39594340'app/controllers/restaurants_controller.rb:15:in > `index' > > > > > > And here is my code - please ask if you need more: > > > > > > def set_google_restaurant_values(result) > > venue = set_attr_from_google(result) > > @encoded_venue = > Base64.urlsafe_encode64(URI.encode(venue.to_json)) > > > > @venue_json = {"name" => venue[:name]}.to_json > > > > @restaurant = > Restaurant.find_or_create_by_google_id(venue[:google_id], > final_restaurant_attributes(venue)) > > > > @parsed_address = > split_formatted_address(venue[:formatted_address].to_s) > > > > end > > > > I think this has to do with the 'toggle' button in your > thinking_sphinx.rb class but I have no idea how to pass my instance, or why > it's not passing. > > > > The :delta attribute is not null and true by default in the model. > > > > Talk to you soon Pat - fingers crossed you can help > > > > > > > > -- > > You received this message because you are subscribed to the Google > Groups "Thinking Sphinx" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > > To post to this group, send email to [email protected]. > > Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en > . > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- ______________________________________________________ *Laurent Gorse* MBA Candidate, class of 2013 *Stanford Graduate School of Business* 650.644.9188 [email protected] gsb.stanford.edu|Facebook: StanfordGSB <http://Facebook.com/StanfordGSB>|Twitter: @StanfordBiz <http://twitter.com/StanfordBiz> -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
