Full text search in rails with postgres
Full text search in rails with postgresSummaryThere are basically 4 options:- Ferret, Solr, Sphinx and native postgres search (which used to be called tsearch2 but is now compiled into the db.) Each...
View ArticleThe muddle that is selenium
I have a bit of a love hate relationship with selenium, and always have. It's great for testing ajax and for integration testing, but there are so many ways of setting it up that I'm never sure if I'm...
View Articlercov bugs
There is a really irritating bug in the ruby bindings for Rcov that has been reported by Brian Candler here among other places. Applying Brian's patches solves part of the problem (I think they are now...
View Articlei18n in rails 3
Well it's been a long time, but I'm going to make an effort to do more blogging now that rails 3 is almost here - partly to keep track of what I need to remember - but also because it might be useful...
View ArticleTesting with devise
Today I ran across a problem getting tests to pass with Devise. There were in fact two issues. First, in rails 3 the Gemfile does not stipulate the order in which gems are loaded and this can mess...
View Articlelicenceable
I've been working quite a bit with Devise over the last week or so. I'm rewriting something that used to be a desktop application and turning it into a web app. The users currently have a seat-based...
View ArticleCreating word documents in rails
This week, I needed to create a word document from data in a rails app. Needless to say, there is not a windows machine in sight. After a bit of googling around and thinking about maybe trying to use...
View ArticleStarting the console ready for rails
Every time I start my computer I spend a couple of minutes getting the console set up the way I want it - I need spork and autotest running, I need the rails console and server - oh and I like to run...
View ArticleAjax redirects with devise
When devise times out, the user should be forced to log in again. This works fine when the user attempts to access my app using an html request, but ajax requests were bringing up the...
View Article