app/controllers/muck/recommendations_controller.rb in muck-raker-0.1.38 vs app/controllers/muck/recommendations_controller.rb in muck-raker-0.1.39
- old
+ new
@@ -20,11 +20,11 @@
@uri = @uri[%r=http://.*?/.*?/[^/]+=] || @uri
params[:title] = true
params[:more_link] = true
end
- Entry.track_time_on_page(session, @uri)
+# Entry.track_time_on_page(session, @uri)
@entry = Entry.recommender_entry(@uri)
# I18n.locale = @entry.language[0..1] if !@entry.nil?
@limit = params[:limit] ? params[:limit].to_i : 5
@limit = 25 if @limit > 25
@@ -38,14 +38,14 @@
@recommendations = @entry.ranked_recommendations(@limit, params[:order] || "mixed", @details)
render :template => 'recommendations/index'
end
end
format.xml {
- render(:template => @entry.id.nil? && real_time == true ? '/recommendations/index_real_time.xml.builder' : '/recommendations/index.xml.builder', :layout => false)
+ render(:template => @entry.id.nil? && @real_time == true ? '/recommendations/index_real_time.xml.builder' : '/recommendations/index.xml.builder', :layout => false)
}
format.pjs {
@host = "http://#{URI.parse(@uri).host}"
- render(:template => @entry.id.nil? && real_time == true ? 'recommendations/index_real_time.pjs.erb' : 'recommendations/index.pjs.erb', :layout => false)
+ render(:template => @entry.id.nil? && @real_time == true ? 'recommendations/index_real_time.pjs.erb' : 'recommendations/index.pjs.erb', :layout => false)
}
format.rss {
render(:template => 'recommendations/index.rss.builder', :layout => false)
}
end