Hi,
I'm wanting to get data from a table called ea_service_provider, and have managed to do so by creating a blank file called ea_service_provider.rb and with the following contents:
class EaServiceProvider < ActiveRecord::Base # model to interact with ea_service_provider table end
This is so in another controller I can get the list of service providers by:
@ea_service_providers = EaServiceProvider.find(:all);
I'm kind of unhappy having this file around just to interact with the table. Can I use Rails to connect to an arbitrary table without needing to create blank models?