amnesia7
amnesia7
Out of curiosity, is there a reason why your version is better using history plugin? jquery address produces urls [where possible] in a normal format whereas many other plugins produce...
@mbleigh just wondered if there was any sign of eager loading tags being applied.
@derek-watson since normal practice with google searches for excluding search terms is to put a dash/hyphen before terms `'jaguar -cat'`, would I need to check if the user done that...
Not sure if this helps or not (http://stackoverflow.com/a/9505584/1116573) because it sounds like you can mix a custom sql statement with the active relation stuff. Also can be found here (http://apidock.com/rails/ActiveRecord/AssociationPreload/ClassMethods/preload_associations#note_content-158),...
I haven't got access to an app with geocoder to test this at the moment but I thought I'd throw it out there incase someone else can check it. I...
Disregard my comment above. Although it allows me to include extra fields in the `.select()` to use for ordering the results they are not callable in the view so if...
@rubyconvict maybe try `.joins(:categories).eager_load(:categories)` instead.
Thanks @eliotsykes How would you expand on that if the search had multiple fields, eg select a category, or date filters? I'm currently rewriting the test suite for my app...
Thinking about this again, you're right; `.page()` is a class method and as such would be tested along with the others in the model spec rather than in the controller...
Is this the kind of model specs you'd expect for `page`? ``` ruby describe '.page(params[:page])' do context 'when no enquiries' do specify { expect(Enquiry.page(1)).to be_empty } end context 'with enquiries'...