I´m planning to create a room managaement system in Rails.
I have a collection of rooms, like this:
@rooms = Room.find :all
Then I want to write:
@rooms.to_svg # (or any other method name)
to convert this collection of rooms into SVG.
Now the question: Where do I have to define those methods?
I could write
but that would be only for this collection; if I do Room.find :blah, I
want to be able to do the same thing.