search for: ticket_status

Displaying 1 result from an estimated 1 matches for "ticket_status".

2006 Feb 12
6
Design question - where to store constants?
...r) The status -could- be another table in the database listing status types, but I think that''s unnecessarily complex and overly flexible for this. (opinions on this point would be interesting) Another alternative would be to define the statuses as a constant within the application: ticket_status = ["Open", "Closed"] Where is this constant declaration best suited? At the App level in the CONFIG[]? Or in the model for the ticket? The controller for the ticket? It seems to be a model thing. Jake -- Posted via http://www.ruby-forum.com/.