DONE! I've finally implemented my search on Heroku. Man, that was a brutal... 16 hours of pure work. All for a stupid mistake. I need to get my head in order.
On Thu, Apr 18, 2013 at 8:46 PM, <[email protected]> wrote: > OK solved the :delta problem but now I realize that I need to change the > target url of TS:delta since it is localhost by default. > > I am looking into redis2Go on Heroku. Any advice about these next steps? > > > On Thursday, April 18, 2013 3:31:18 AM UTC-7, [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. > > > -- ______________________________________________________ *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.
