by Peter Connolly | Jul 14, 2011 | Ruby on Rails
ThinkingSphinx gives Ruby-on-Rails developers the power of a full-text search engine, with only one downside; it’s a full-text search engine. Recently I had to develop an Advanced Search facility for a site which required me to locate content within certain...
by Peter Connolly | Jun 27, 2011 | Ruby on Rails
It’s a bit of a common question (in the Ruby on Rails world, at least!). I came across this issue this morning when I copied an existing ThinkingSphinx yml file from a working system. Symptoms: Running rake ts:rebuild would rebuild the database, but would not...
by Peter Connolly | Jun 10, 2011 | featured, Ruby on Rails
When playing with Thinking Sphinx (the Ruby on Rails wrapper for the open source Sphinx search server), I decided to try to see if I could perform an injection attack on the server. Here’s the bad news: Yes, I could modify searches by changing the parameters...
by Peter Connolly | May 5, 2011 | featured, Ruby on Rails, technology
What is a Helper? A helper is a piece of code which can be used in several places within your Ruby project, which helps you to keep your code DRY (Don’t Repeat Yourself). By moving code into helpers you can reduce repetition, improve readability and increase...
by Peter Connolly | Apr 20, 2011 | featured, Ruby on Rails, technology
Creating sortable lists in Ruby on Rails isn’t difficult, but all of the tutorials I’ve found out there save the new order of the items immediately to the database. I want to only save the new sort order when the associated record is saved. Here’s...