I have the site running (http://www.londonprogressivejournal.com) and if
you look you can 'respond' to any given article which leads to you
submitting a 'letter' object to the system.
At a later date we'll be publishing these.
Articles can of course have many letters. Letters only have one article.
However, people will be able to respond to a published letter just as
they will to an article.
So a Letter can have many letters (those that are responses to it)...but
it also only has one letter if it is itself a response to an existing
My Letter model has both an article_id and a letter_id but my issue is
how to show Ruby that model? I have said 'has many letters' but now of
course I can't refer to letter.letter.id to find out which letter this
one might be a response to.
Does anyone know how to deal with this sort of self-referential
architecture in ruby?