I have a model that includes a :current boolean. The idea is that there are many home pages that the admin is working on at any given time, but only one is current at a time. At the moment, I have enforced this with the following:
Home.where(["current = ? & id != ?", true, self.id]).each do |home|
Which works, but feels like a heavy solution to a simple problem. I could add a set of radio buttons to the index view and set it that way, but does anyone else have any other suggestions?
Thanks in advance,