search for: intuserid

Displaying 3 results from an estimated 3 matches for "intuserid".

Did you mean: getuserid
2006 Apr 11
7
Undefined Method
...er => "#{tblregisteredphone.tbluser.txtForename}" %> 26: </td> The tblregisteredphones model and controller are as follows: Model: class Tblregisteredphone < ActiveRecord::Base set_table_name "tblregisteredphones" belongs_to :user, :foreign_key => "intUserID" set_primary_key(:TblRegisteredPhonesID) end Controller: class TblregisteredphoneController < ApplicationController layout "standard-layout" scaffold :tblregisteredphone def delete Tblregisteredphone.find(@params[''id'']).destroy redirect_to :action =>...
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_key => "intUserID" set_primary_key(:TblRegisteredPhonesID) end class User < ActiveRecord::Base set_table_name "tblu...
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