search for: ryck

Displaying 7 results from an estimated 7 matches for "ryck".

Did you mean: rick
2006 Apr 24
3
TimeStamp conversion
Hi, I''ve got a TimeStamp field in MySql and want to use the hour and minutes in the value. for example: StartTime = Schedule.find(action2.ScheduleID).DateTimeStart.to_s That returns "Mon Feb 20 08:00:00 Romance Standard Time 2006" How do I get 08:00 returned ?? Thanks ! Steven. -- Posted via http://www.ruby-forum.com/.
2006 Apr 24
2
rails calendar system
Hi, Anyone got some tips on how to design some sort of datagrid/calendar where the columns define a resource and the rows define the date. In the corresponding cells are activities that match the resource and date, ... Thanks! Steven. -- Posted via http://www.ruby-forum.com/.
2006 Mar 28
8
Problem connecting with an SQL Server 2000 database
Hi, I?m working on a rails application that uses data from an existing ms sqlserver 2000 database. Unfortunately I can?t get the connection to work properly. I used http://wiki.rubyonrails.com/rails/pages/HowtoConnectToMicrosoftSQLServer to make the connection. - Inserted the ado.rb - Changed my database.yml to development: adapter: sqlserver database: database_name host:
2006 Apr 14
6
Running through results of find()
Hi, I''ve got a question about the find() method in RoR This is my code: actions=Action.find(:all, :conditions => "ActivityID=''actid''") This should return a list, array, hash, ... ? of Actions. What type of data does find() return? And how do I run through it? I would like to show Action.ActionCode for every action in actions. I tried: for action in
2006 Apr 25
1
Array of dates/times from time.now till nextweek
Hi, I would like to make @dates in my controller. I tried the following: startdate = Time.now enddate = startdate.next_week for enddate > startdate @dates << startdate startdate = startdate.tomorrow end But I get an errormessage when I check the syntax: "warning: useless use of a variable in void context" Anyone? Thanks! Steven. -- Posted via
2006 Apr 11
1
error using find() method "couldn''t find"
I get the following error-message: "Couldn''t find Activitycategory with ID=1" How do I make RoR handle this error? When the id is nog found he should return a string or 0 or whatever. I''m guessing by using exceptions but I''m not very familiar with ruby itself ... Help? Steven. -- Posted via http://www.ruby-forum.com/.
2006 Apr 20
1
cannot convert Time into String
Hi, I''m getting the following error-message: "cannot convert Time into String" Any idea how to solve this? Steven. -- Posted via http://www.ruby-forum.com/.