Monthly Archives: November 2012

Sorting with has_many :through and acts_as_list

I’m currently working on a questionnaire system which has two main objects: Question and Questionnaire. I had been associating them using has_and_belongs_to_many, but a new requirement means that I now need to be able to define a question order within … Continue reading

Posted in Ruby | Comments Off on Sorting with has_many :through and acts_as_list

Using json data outside the original JavaScript function

I’ve been working on a Reckoner that helps people calculate some figures. I started by hard coding some threshold figures into the JavaScript while I worked on most of the functionality. However, once that was done, I needed to modify … Continue reading

Posted in JavaScript, Ruby | Comments Off on Using json data outside the original JavaScript function

Simple local only mail

I’m working on an application that needs to send notifications via email, and I want to be able to test it in the development environment. In the past, I’ve either been able to set up a small Windows mail server … Continue reading

Posted in Ruby | Comments Off on Simple local only mail