search for: tblregisteredphones

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

Did you mean: tblregisteredphone
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
...acted source (around line #23): 20: </font> 21: </td> 22: <td> 23: <%= link_to tblregisteredphone.tbluser.txtForename, 24: :action => "list", 25: :tbluser => "#{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 &lt...
2006 Apr 04
11
Date/Time format and syntax
Hi, Just wondering how I get both the current date and time to display here (so far I can only get the date OR the time): @tblregisteredphone.txtregisterdatetime = Date.today Also, how can I change the format of the date and time from: Tue Apr 04 00:00:00 GMT Daylight Time 2006 to 2006-04-04 12:04:00 ?? I''m sure it''s very simple, I just don''t know how
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"...