I am having a hard time connection to my SQL Server 2005 data on a Windows 7 machine.
I created a table and model following ruby's standards and can connect with the console and get the field names. I can not get it to work with any existing tables.
I created this model which does not work:
class Employee < ActiveRecord::Base
set_table_name = 'EMP'
primary_key = 'EMP_EmployeeID'
end
However if I add a table called employees with a primary key of 'id' the model works, albeit taking the fields from the table I added and ignoring the real table.
Any one have any clue on how I can get this to work?