search for: schedule_id

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

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/.
2007 Apr 08
0
select html for habtm
...=> @schedule else render :action => ''edit'' end end I keep getting an error: ActiveRecord::StatementInvalid in ScheduleController#update Mysql::Error: Duplicate entry ''3'' for key 1: INSERT INTO projects_schedules (`project_id`, `id`, `schedule_id`) VALUES (3, 3, 1) It''s because the id 3 is already used in the projects_schedules table. Why is it choosing a duplicate key? T. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&quo...
2007 Sep 06
2
HABTM Loops
So, I have a "schedules" table and a "hours" table, joined by a "hours_schedules" table. Think of the hours table as a category for when people will schedule themselves to work, which happens in weekly increments. At any given hour, there will be X number of people working. I need to represent each worker with an asterisk symbol in the weekly view. For example,
2006 Aug 18
3
Understanding MVC - view customization after using scaffolds
...ROR using radrails. I have a few questions ... I create a table named customers with the following details: Field Type Null Key Default Extra id int(11) NO PRI auto_increment customer_name varchar(50) NO inbound_retention int(11) NO outbound_retention int(11) NO unix_admin_email varchar(50) NO schedule_id int(11) NO transfer_inbound_type varchar(20) NO transfer_outbound_type varchar(20) NO date_added timestamp YES CURRENT_TIMESTAMP I then run the scaffold generation: ediweb> ruby script/generate scaffold customer Customerinfo exists app/controllers/ exists app/helpers/ exi...