search for: txtregisterdatetime

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

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 to do it! Alana -- Posted via http://www.ruby-forum.com/.
2006 Apr 20
5
nil object when you didn''t expect it
Hi, I''m new to rails and finding it hard to figure out what this error is referring to. Can anyone help please?!! NoMethodError in Registeredphone#list Showing app/views/registeredphone/list.rhtml where line #24 raised: You have a nil object when you didn''t expect it! The error occured while evaluating nil.txtForename Extracted source (around line #24): 21:
2006 Apr 11
7
Undefined Method
...teredphone def delete Tblregisteredphone.find(@params[''id'']).destroy redirect_to :action => ''list'' end def create @tblregisteredphone = tblregisteredphone.new(@params[''tblregisteredphone'']) @tblregisteredphone.txtregisterdatetime = Time.now if @tblregisteredphone.save redirect_to :action => ''list'' else render_action ''new'' end end def new @tblregisteredphone = Tblregisteredphone.new @tbluser = Tbluser.find_all end def list @tbluser = @params[''tbluser'...
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