An example of building one database-backed resource in Rails