search for: device_table_name

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

2006 Apr 10
5
How to create tables/models on the fly?
...ollecting data in real time. Each table may have different columns number, e.g. one is: datetime, temperature, pressure and another will be: datetime, voltage, current, power, resistance. Can anybody advice how to best achive it, to make good use of Rails framework capabilities, e.g. to use @device_table_name.temperature etc. in templates? One possibility I am trying now is Class.new(superclass) but maybe there are proven better approaches? I didn''t tell that I need to create these new classes from web interface, so that regular user could add new devices to the solution easily. Thank you...