search for: task

Displaying 20 results from an estimated 16015 matches for "task".

Did you mean: mask
2007 Jul 12
3
Agh, this is annoying. Why is this happening?
My problem: Mock ''Task_1005'' received unexpected message :user_id= with (1) No matter what I do to try to stub that out it will still fail out and give me that message. Here is my spec describe TasksController, "handling POST /tasks" do before(:each) do @task = mock_model(Task, :to_param =&gt...
2005 Jan 14
0
Code contributed for a gant (Gantt) chart
...s that look like horizontal barplots where the x-axis is time. Finding none, I wrote the following and am submitting it to the archive so that it may help someone in the future. plotfile <- "gant.eps" regular.color <- "lightgray" important.color <- "yellow" tasks <- list() # Define tasks. Start and end refer to times. tasks[[length(tasks) + 1]] <- list(name = "Name of first task", start = 0, end = 3, color = regular.color) tasks[[length(tasks) + 1]] <- list(name = "Name of second task", start = 3, end = 7, color = regular...
2006 Mar 08
5
object.save is not creating an insert statement
I have a model for a task class. When I try to save a task, for some reason no INSERT statement is being generated. Here''s the pertinent part of the development.log: ------------------------------------ Processing TasksController#create_fromProject (for 70.247.24.238 at 2006-03-08 14:20:30) [POST] Paramete...
2008 Jul 09
2
Can I get RSpec NOT to abort rake on failing specs?
At work we''ve got a rather complex app with both specs and tests. Our default rake task runs all our our tests and specs. We''ve also got separate rake tasks to run groups of tests and specs in the various subdirectories. The default task simply lists all the individual tasks as pre-reqs. We do a lot of branching and merging, so we really want to run all of the tests and spe...
2006 Apr 17
1
Smbd using too much CPU
...0 1740 total Here's an extract from strace -p 13320 -f. I don't understand anything from it. ---------------------------------------------------------------------------- -------------------------------- gettimeofday({1145270319, 463254}, NULL) = 0 stat64("proc/self/task/13320/cwd/proc/self/task/13320/cwd/proc/self/task/133 20/cwd/proc/self/task/13320/cwd/proc/self/task/13320/cwd/proc/self/task/1332 0/cwd/proc/self/task/13320/cwd/proc/self/task/13320/cwd/proc/2/root/proc/6/c wd/proc/13123/fd", {st_mode=S_IFDIR|0500, st_size=0, ...}) = 0 fcntl64(13, F_SETLKW64...
2008 Apr 23
0
self referential (n-n relationship) belongs many controller
Hi all, I ve some troubles in my small acpplication (only 2 tables). I want to follow up tasks but these tasks are linked to others tasks. So I ve tried to do store the nn relationship in other table called links 1st table : tasks columns : id | infos neutral... (as title, description etc ...) ----------------------------------------------------------------------------------- model : c...
2012 Jun 30
5
Problems with associations
Hello guys, I have two tables, tasks and projects, and each model I put: Task.rb class Task < ActiveRecord::Base attr_accessible :user_id, :project_id, :name belongs_to :project end Project.rb class Project < ActiveRecord::Base attr_accessible :name, :description has_many :tasks end But when I go to my prompt and I...
2011 Jul 28
14
Actionmailer Help Needed
Hello everyone, Nice to meet you all, am new to the forum. I''m stuck with rake / actionmailer trying to display a set of found records. We have a simple actionmailer rake task that is supposed to send a daily email digest of tasks that are due for a specific user. So far, it''s working but the email only displays the first message. In my task model scope :tasksdue, lambda { where("dueddate > ? AND status = ?", Date.today, false) } def se...
2016 Mar 22
2
Samba43 Kerberos issues
...same error: [Errno 2] No such file or directory Calling nsupdate for A gc._msdcs.a Calling nsupdate for SRV _gc._tcp. Last thing that I found On DC1 # ps ax | grep samba 38636 - Is 0:00.40 /usr/local/sbin/samba --daemon --configfile=/usr/local/etc/smb4.conf 38637 - I 0:00.00 samba: task[s3fs_parent] (samba) 38638 - S 0:27.24 samba: task[dcesrv] (samba) 38640 - I 0:00.01 samba: task wrepl server_id[38640] (samba) 38641 - I 0:08.63 samba: task[ldapsrv] (samba) 38642 - S 0:00.07 samba: task[cldapd] (samba) 38644 - S 1:04.27 samba: task[dreplsrv...
2007 Feb 13
1
Passing Arrays in recursive functions.
ok, I''m still new to ruby and new to rails. what I have is a task database that acts_as_tree a task can have a children an those children are full tasks so they can have children of their own, Tasks can only be completed if they have no children, a task with children is only completed if all its children are done. this much I have working, I''m trying to...
2011 Sep 12
1
Superimposing titles on dotcharts
I've created a chart with times that employees have entered data on named tasks as in the following example: Employee <- c(rep("Tom", 127),? rep("Dick", 121),? rep("Sally", 130) ) Time <- c(seq(as.POSIXct("2011-09-12 07:00:00"), as.POSIXct("2011-09-12 14:00:00"), 200), seq(as.POSIXct("2011-09-12 07:00:00"), as...
2008 Dec 19
3
Delete All action
Hi, What is the best way to delete all members of a model? For example I have a tasks model and want to put a link in that will delete all tasks at once. Something like, @tasks = Task.all @tasks.each { |task| task.destroy } Do I need another action for this, and what should the link to it be? cheers, DAZ --~--~---------~--~----~------------~-------~--~----~ You received this me...
2016 Jun 21
2
Samba43 Kerberos problems
...ame error: [Errno 2] No such file or directory Calling nsupdate for A gc._msdcs.a Calling nsupdate for SRV _gc._tcp. Last thing that I found On DC1 # ps ax | grep samba 38636 - Is 0:00.40 /usr/local/sbin/samba --daemon --configfile=/usr/local/etc/smb4.conf 38637 - I 0:00.00 samba: task[s3fs_parent] (samba) 38638 - S 0:27.24 samba: task[dcesrv] (samba) 38640 - I 0:00.01 samba: task wrepl server_id[38640] (samba) 38641 - I 0:08.63 samba: task[ldapsrv] (samba) 38642 - S 0:00.07 samba: task[cldapd] (samba) 38644 - S 1:04.27 samba: task[dreplsrv...
2010 Dec 16
1
Ambiguous match error for Cucumber
Hi, I am trying out the cucumber tutorial http://www.ultrasaurus.com/sarahblog/2008/12/rails-2-day-3-behavior-driven-development/ My tasklist.feature file is like as follows " Feature: Tasks In order to keep track of tasks People should be able to Create a list of tasks Scenario: List Tasks Given that I have created a task "task 1" When I go to the tasks page Then I should see "task 1" " My tasklist_st...
2008 Jun 18
7
Object Task at episode 74 of railscasts
Hi. In the episode 74 <http://railscasts.com/episodes/74>, Ryan has a model "project" that can have many "tasks", and he uses link_to_function to dynamically add a field in the form for a new Task. In order to do that he created a helper called add_task_link. The code of the method is: # projects_helper.rb def add_task_link(name) link_to_function name do |page| page.insert_html :bottom, :tasks...
2006 Feb 15
2
Polymorphic joins work one way, but not the other
...but it seems to cover a somewhat different case. Anyway - I pretty much got it to work - save for one detail. Here''s what I have: class Event < ActiveRecord::Base belongs_to :attachable, :polymorphic => true #events table has attachable_type and attachable_id fields end class Task < ActiveRecord::Base has_many :events, :as => :attachable #tasks tables is nothing special end and now a unit test: #there''s some fixtures above def test_polymorphics assert tasks(:simple_task).events << events(:simple_event_1) assert tasks(:simple_task).events &...
2006 May 02
4
How to extend rails rake tasks?
Does anyone know how to extend the buit-in rake tasks like test:unit. I want to custom load some fixtures in a particular order. Thanks, Zack
2009 May 19
1
re-sending outstanding controller refactoring patches after rebase
I've rebased the patch series to the current next branch and am sending them again.
2006 Apr 25
4
Symlinks in Capistrano?
I have a few projects with large directories (say, user-uploaded files) that make using Capistrano a bit awkward. However, I suspect that I may have reached the "write a custom task" level. (I suppose I''m just thinking out loud, here...) It seems as though I''d want this directories symlinked in /shared... Maybe there''s a way to extend the ''symlink'' task to do this... ? -------------- next part -------------- An HTML attachmen...
2006 Mar 17
4
deleting from hash question
I''m a ruby newbie and have what is probably a relatively simple problem I''m trying to solve. Say that I created a hash: TASKS = { "homework" => "Do Your Homework", "chores" => "Your Have Chores", "exercise" => "Don''t Forget to Exercise" } and then I had an Assignment model with: def self.find_assignments(person) find(:all, :...