Quantcast
Channel: davidfurber.name » Ruby on Rails
Browsing latest articles
Browse All 6 View Live

Thinking Sphinx with Paginating Find

The Thinking Sphinx plugin comes wired to work directly with will_paginate. However, I use the paginating_find instead. I placed this block of code in a new file called thinking_sphinx_patch.rb and...

View Article



Search Multiple Models at Once with Thinking Sphinx

Buried in the Thinking Sphinx documentation I found a powerfully easy answer to a problem that is otherwise not easy to solve with ActiveRecord. How do you search across multiple models and combine the...

View Article

Thinking Sphinx with Excerpt Highlighting

So you want to highlight search terms and excerpt relevant phrases in your search results, and you want it done using the same stemming rules that your search engine uses to gather results? Update...

View Article

Making YSlow Happy With Rails, Apache, Passenger

Over the past month I’ve been obsessed with speeding up a Rails app that I perceived to be slow (http://stopfamilyviolence.org). Requests would take half a second minimum and only 50 db queries if...

View Article

Can Coding Standards Be Enforced Programmatically?

We’ll find out. Saw this today, can’t wait to give it a try: http://github.com/flyerhzm/rails_best_practices A program that checks your Rails code against the “best practices”.

View Article


Instance variable not assigned in view

I just spent a few minutes in la-la-land trying to figure out when an instance variable assigned in the controller stopped showing up in the view, despite all evidence that it was getting set correctly...

View Article
Browsing latest articles
Browse All 6 View Live


Latest Images