Displaying 5 results from an estimated 5 matches for "due_on".
Did you mean:
bug_on
2006 Jul 31
2
ambiguous column name in has_many :through
...application model I have three classes: Accounts, Projects, and Items
class Accounts < ActiveRecord::Base
has_many :items, :through => :projects, :source => :items
has_many :late_items, :class_name => ''Item'', :through => :projects,
:conditions => [''due_on < ?'', Time.now], :source => :items
end
class Projects < ActiveRecord::Base
has_many :items
belongs_to :account
end
class Item < ActiveRecord::Base
belongs_to :project
end
When I attempt to grab an account''s items through @my_account.items
everything is fine....
2006 Jan 30
5
Action Mailer woes
Hi gang,
Im having my first stab at ActionMailer and not having any luck. Perhaps
someone could help me out.
I generated a a mailer called ItemMailer - its purpose is to take some
information that I''ve already gathered in a ToDo list form and to mail
it out to the person who is nominated for the task
In environment.rb I have;
ActionMailer::Base.server_settings = {
:address =>
2005 Nov 20
1
mySQL 5.0 upgrade - incompatible DateTime format?
...9;s gone pretty smoothly except that on
DateTime.now doesn''t seem to return a value that mySQL likes any more,
as seen in the following exception:
Incorrect datetime value: ''2005-11-20T15:33:12-0800'' for column ''logged_at'' at row 1: UPDATE notes SET `due_on` = ''2005-11-20'', `created_at` = ''2005-11-20 15:33:12'', `deleted` = 0, `user_name` = ''steve'', `labels` = NULL, `job_name` = NULL, `domain_controller` = NULL, `domain_id` = NULL, `contact_name` = NULL, `customer_id` = NULL, `logged_at` = ''...
2006 Apr 22
0
Newbie - list based on joined query?
I''m retrieving a list of tasks to display in a page using
@delegatedtask_pages, @delegatedtasks = paginate :tasks, :conditions =>
"user_id = " + session[:user_id].to_s + " percent_complete <> 100",
:order_by => ''due_on asc''
I''d like to only list the tasks which have been assigned to other
people. I have a table called assigned_tasks which links my tasks to the
users. A straight SQL query to accomplish this might be
SELECT * FROM tasks INNER JOIN assigned_tasks ON tasks.id =
assigned_tasks.t...
2006 Mar 21
3
Newbie - ActiveRecord relationships
...E TABLE `tasks` (
`id` int(4) NOT NULL auto_increment,
`parent_id` int(4) default NULL, #Parent task
`title` varchar(100) NOT NULL default '''',
`description` text NOT NULL,
`estimated_hours` int(4) NOT NULL default ''0'',
`start_on` date default NULL,
`due_on` date NOT NULL default ''0000-00-00'',
`user_id` int(4) NOT NULL default ''0'', #Task owner
`client_id` int(4) NOT NULL default ''0'',
`type_id` int(4) NOT NULL default ''0'',
`urgent` tinyint(4) default NULL,
`on_hold` tinyi...