search for: tblusersid

Displaying 4 results from an estimated 4 matches for "tblusersid".

2006 Apr 11
1
Foreign Keys
Hi, My tables are as follows: "tblusers" - primary key "TblUsersID" "tblregisteredphones" - primary key "TblRegisteredPhonesID" - foreign key "intUserID" My models are as follows: class Registeredphone < ActiveRecord::Base set_table_name "tblregisteredphones" belongs_to :user, :foreign_k...
2006 Apr 07
2
Case Sensitivity and ID Field Naming
...ess''. Is rails sensitive to the case of the letters here? or can I simply refer to these tables and fields as ''tblusers'' and ''txtemailaddress'' in my controllers ad rhtml files? Also, the database has id fields named after the tables such as ''TblUsersID'' for ''TblUsers''. I know rails prefers id fields to be named ''id''. How difficult is it to override this? If I can override it, does every instance of ''id'' become ''TblUsersID''? eg. in the following example, would this...
2006 Apr 04
16
No Method Error
This is the error that keeps appearing. I don''t understand why "@tblusers" is not correct. Can anyone help? NoMethodError in Tblregisteredphone#new Showing app/views/tblregisteredphone/new.rhtml where line #20 raised: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.each Extracted
2006 Apr 11
7
Undefined Method
Where can I define the method ''tbluser'' in this error? NoMethodError in Tblregisteredphone#list Showing app/views/tblregisteredphone/list.rhtml where line #23 raised: undefined method `tbluser'' for #<Tblregisteredphone:0x375c778> Extracted source (around line #23): 20: </font> 21: </td> 22: <td> 23: <%= link_to