flyboy 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,10 +8,24 @@ module Flyboy
8
8
  only: [:show, :edit, :update, :destroy, :open, :close]
9
9
 
10
10
  def index
11
- authorize! :read, Goal
11
+ authorize! :list, Goal
12
12
 
13
- @filters = SmallData::FilterForGoals.new(cookies)
14
- @goals = @filters.apply get_index_goals
13
+ @goals ||= Goal.all
14
+
15
+ @order ||= sortable_column_order do |column, direction|
16
+ case column
17
+ when "title"
18
+ %(LOWER(flyboy_goals.#{column}) #{direction})
19
+ else
20
+ params["sort"] = "status"
21
+ "status ASC"
22
+ end
23
+ end
24
+
25
+ @filters ||= SmallData::FilterForGoals.new(cookies)
26
+
27
+ @goals = @goals.order(@order)
28
+ @goals = @filters.apply @goals
15
29
  end
16
30
 
17
31
  def show
@@ -19,13 +33,13 @@ module Flyboy
19
33
  end
20
34
 
21
35
  def new
22
- @goal = Goal.new
36
+ @goal ||= Goal.new
23
37
 
24
38
  authorize! :create, @goal
25
39
  end
26
40
 
27
41
  def create
28
- @goal = Goal.new(goal_params)
42
+ @goal ||= Goal.new(goal_params)
29
43
 
30
44
  authorize! :create, @goal
31
45
 
@@ -98,21 +112,5 @@ module Flyboy
98
112
  params.require(:goal).permit(permitted_params)
99
113
  end
100
114
 
101
- def get_index_goals
102
- Goal.all.order(get_index_order)
103
- end
104
-
105
- def get_index_order
106
- sortable_column_order do |column, direction|
107
- case column
108
- when "title"
109
- %(LOWER(flyboy_goals.#{column}) #{direction})
110
- else
111
- params["sort"] = "status"
112
- "status ASC"
113
- end
114
- end
115
- end
116
-
117
115
  end
118
116
  end
@@ -2,12 +2,10 @@
2
2
 
3
3
  module Flyboy
4
4
  class TaskCommentsController < ::Flyboy::ApplicationController
5
- before_action :set_objects
6
-
7
5
  def create
8
- @task = Task.find(params[:task_id])
6
+ @task ||= Task.find(params[:task_id])
7
+ @comment ||= @task.comments.new(task_comment_params)
9
8
 
10
- @comment = @task.comments.new(task_comment_params)
11
9
  @comment.date = DateTime.now # TODO : Export to model ?
12
10
 
13
11
  authorize! :update, @task
@@ -21,10 +19,6 @@ module Flyboy
21
19
 
22
20
  private
23
21
 
24
- def set_objects
25
- @task = Task.find params[:task_id]
26
- end
27
-
28
22
  def permitted_params
29
23
  [:progress, :description]
30
24
  end
@@ -4,24 +4,51 @@ module Flyboy
4
4
  class TasksController < ::Flyboy::ApplicationController
5
5
  handles_sortable_columns
6
6
 
7
- before_action :set_objects, only: [:show, :edit, :update, :destroy, :complete, :snooze]
7
+ before_action :set_objects,
8
+ only: [:show, :edit, :update, :destroy, :complete, :snooze]
8
9
 
9
10
  def index
10
- authorize! :read, Task
11
+ authorize! :list, Task
11
12
 
12
- @filters = SmallData::FilterForTasks.new(cookies)
13
- @tasks = @filters.apply get_index_tasks
13
+ @tasks ||= Task.all
14
+
15
+ @order ||= sortable_column_order do |column, direction|
16
+ case column
17
+ when "title", "status"
18
+ %(LOWER(flyboy_tasks.#{column}) #{direction})
19
+ when "goal"
20
+ %(LOWER(flyboy_goals.title) #{direction})
21
+ else
22
+ params["sort"] = "term"
23
+ "term ASC"
24
+ end
25
+ end
26
+
27
+ @filters ||= SmallData::FilterForTasks.new(cookies)
28
+
29
+ @tasks = @tasks.order(@order)
30
+ @tasks = @filters.apply @tasks
14
31
 
15
32
  respond_to do |format|
16
33
  format.html
17
- format.csv { send_data @tasks.to_csv, filename: "feuille_de_route_#{Date.today}.csv", disposition: "attachment"}
34
+
35
+ format.csv do
36
+ send_data @tasks.to_csv,
37
+ filename: "feuille_de_route_#{Date.today}.csv",
38
+ disposition: "attachment"
39
+ end
40
+
18
41
  format.xls
42
+
19
43
  format.pdf do
20
44
  pdf = Roadmap.new(@tasks)
21
45
  pdf.build
22
- send_data pdf.render, filename: "feuille_de_route_#{Date.today}.pdf", disposition: "inline"
46
+ send_data pdf.render,
47
+ filename: "feuille_de_route_#{Date.today}.pdf",
48
+ disposition: "inline"
23
49
  end
24
50
  end
51
+
25
52
  end
26
53
 
27
54
  def show
@@ -31,8 +58,8 @@ module Flyboy
31
58
  end
32
59
 
33
60
  def new
34
- @goal = Goal.find(params[:goal_id])
35
- @task = @goal.tasks.new
61
+ @goal ||= Goal.find(params[:goal_id])
62
+ @task ||= @goal.tasks.new
36
63
 
37
64
  authorize! :create, @task
38
65
  end
@@ -42,7 +69,7 @@ module Flyboy
42
69
  end
43
70
 
44
71
  def create
45
- @task = Task.new(task_params)
72
+ @task ||= Task.new(task_params)
46
73
 
47
74
  authorize! :create, @task
48
75
 
@@ -90,31 +117,21 @@ module Flyboy
90
117
 
91
118
  private
92
119
 
93
- def get_index_tasks
94
- Task.all.order(get_index_order)
95
- end
96
-
97
- def get_index_order
98
- sortable_column_order do |column, direction|
99
- case column
100
- when "title", "status"
101
- %(LOWER(flyboy_tasks.#{column}) #{direction})
102
- when "goal"
103
- %(LOWER(flyboy_goals.title) #{direction})
104
- else
105
- params["sort"] = "term"
106
- "term ASC"
107
- end
108
- end
109
- end
110
-
111
120
  def set_objects
112
121
  @task = Task.find params[:id]
113
122
  @goal = @task.goal
114
123
  end
115
124
 
125
+ def permitted_params
126
+ [
127
+ :goal_id,
128
+ :title, :description, :progress,
129
+ :term, :reminder, :cost, :budget
130
+ ]
131
+ end
132
+
116
133
  def task_params
117
- params.require(:task).permit!
134
+ params.require(:task).permit(permitted_params)
118
135
  end
119
136
 
120
137
  end
@@ -4,8 +4,8 @@ module Flyboy
4
4
 
5
5
  def initialize(user = nil)
6
6
  # Allowed actions (all by default)
7
- can [:create, :read, :update, :delete, :open, :close], Flyboy::Goal
8
- can [:create, :read, :update, :delete, :complete, :snooze], Flyboy::Task
7
+ can [:list, :create, :read, :update, :delete, :open, :close], Flyboy::Goal
8
+ can [:list, :create, :read, :update, :delete, :complete, :snooze], Flyboy::Task
9
9
 
10
10
  # Restricted actions
11
11
 
@@ -1,3 +1,3 @@
1
1
  module Flyboy
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
Binary file
@@ -61814,3 +61814,201 @@ Started GET "/assets/jquery-87424c3c19e96d4fb033c10ebe21ec40.js?body=1" for 127.
61814
61814
 
61815
61815
 
61816
61816
  Started GET "/assets/font-awesome/fontawesome-webfont-bdd5fe963cf9a6bcf9c449166e2e5a57.woff2" for 127.0.0.1 at 2015-04-08 10:17:46 +0200
61817
+
61818
+
61819
+ Started GET "/flyboy/goals" for 127.0.0.1 at 2015-04-08 10:34:54 +0200
61820
+ Processing by Flyboy::GoalsController#index as HTML
61821
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/_filters.html.slim (0.9ms)
61822
+ Flyboy::Goal Load (0.5ms) SELECT "flyboy_goals".* FROM "flyboy_goals" ORDER BY status ASC
61823
+  (0.2ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE (goal_id = 2 AND done = 'f' AND term < '2015-04-08')
61824
+  (0.2ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE (goal_id = 2 AND done = 'f' AND term > '2015-04-08' AND reminder < '2015-04-08')
61825
+  (0.2ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 2]]
61826
+  (0.2ms) SELECT SUM("flyboy_tasks"."progress") FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 2]]
61827
+ CACHE (0.0ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 2]]
61828
+  (0.2ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE (goal_id = 1 AND done = 'f' AND term < '2015-04-08')
61829
+  (0.1ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE (goal_id = 1 AND done = 'f' AND term > '2015-04-08' AND reminder < '2015-04-08')
61830
+  (0.1ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 1]]
61831
+  (0.1ms) SELECT SUM("flyboy_tasks"."progress") FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 1]]
61832
+ CACHE (0.0ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 1]]
61833
+  (0.1ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE (goal_id = 3 AND done = 'f' AND term < '2015-04-08')
61834
+  (0.1ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE (goal_id = 3 AND done = 'f' AND term > '2015-04-08' AND reminder < '2015-04-08')
61835
+  (0.1ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 3]]
61836
+  (0.1ms) SELECT SUM("flyboy_tasks"."progress") FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 3]]
61837
+ CACHE (0.0ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 3]]
61838
+  (0.2ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE (goal_id = 5 AND done = 'f' AND term < '2015-04-08')
61839
+  (0.1ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE (goal_id = 5 AND done = 'f' AND term > '2015-04-08' AND reminder < '2015-04-08')
61840
+  (0.1ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 5]]
61841
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/index.html.slim within layouts/application (59.8ms)
61842
+ Completed 200 OK in 174ms (Views: 149.8ms | ActiveRecord: 3.8ms)
61843
+
61844
+
61845
+ Started GET "/assets/application-34d3f0701c71cc6dbf158467a81fd55b.css?body=1" for 127.0.0.1 at 2015-04-08 10:34:54 +0200
61846
+
61847
+
61848
+ Started GET "/assets/jquery-87424c3c19e96d4fb033c10ebe21ec40.js?body=1" for 127.0.0.1 at 2015-04-08 10:34:54 +0200
61849
+
61850
+
61851
+ Started GET "/assets/jquery_ujs-e27bd20a10d28155845a22d71ef94f2f.js?body=1" for 127.0.0.1 at 2015-04-08 10:34:54 +0200
61852
+
61853
+
61854
+ Started GET "/assets/application-ccad13f64a955058eed40f9a74e81c11.js?body=1" for 127.0.0.1 at 2015-04-08 10:34:54 +0200
61855
+
61856
+
61857
+ Started GET "/assets/font-awesome/fontawesome-webfont-bdd5fe963cf9a6bcf9c449166e2e5a57.woff2" for 127.0.0.1 at 2015-04-08 10:34:54 +0200
61858
+
61859
+
61860
+ Started GET "/flyboy/goals/2" for 127.0.0.1 at 2015-04-08 10:34:56 +0200
61861
+ Processing by Flyboy::GoalsController#show as HTML
61862
+ Parameters: {"id"=>"2"}
61863
+ Flyboy::Goal Load (0.2ms) SELECT "flyboy_goals".* FROM "flyboy_goals" WHERE "flyboy_goals"."id" = ? LIMIT 1 [["id", 2]]
61864
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/_actions.html.slim (3.4ms)
61865
+  (0.2ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 2]]
61866
+  (0.2ms) SELECT SUM("flyboy_tasks"."progress") FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 2]]
61867
+ CACHE (0.0ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 2]]
61868
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/_context.html.slim (9.2ms)
61869
+ Flyboy::Task Load (0.2ms) SELECT "flyboy_tasks".* FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? ORDER BY term ASC, term DESC [["goal_id", 2]]
61870
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/tasks/_list.html.slim (2.7ms)
61871
+ Rendered /Users/benoit/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/dorsale-1.1.3/app/views/dorsale/_contextual.html.slim (0.3ms)
61872
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/show.html.slim within layouts/application (17.5ms)
61873
+ Completed 200 OK in 61ms (Views: 57.7ms | ActiveRecord: 0.8ms)
61874
+
61875
+
61876
+ Started GET "/assets/application-34d3f0701c71cc6dbf158467a81fd55b.css?body=1" for 127.0.0.1 at 2015-04-08 10:34:56 +0200
61877
+
61878
+
61879
+ Started GET "/assets/jquery-87424c3c19e96d4fb033c10ebe21ec40.js?body=1" for 127.0.0.1 at 2015-04-08 10:34:56 +0200
61880
+
61881
+
61882
+ Started GET "/assets/jquery_ujs-e27bd20a10d28155845a22d71ef94f2f.js?body=1" for 127.0.0.1 at 2015-04-08 10:34:56 +0200
61883
+
61884
+
61885
+ Started GET "/assets/application-ccad13f64a955058eed40f9a74e81c11.js?body=1" for 127.0.0.1 at 2015-04-08 10:34:56 +0200
61886
+
61887
+
61888
+ Started GET "/assets/font-awesome/fontawesome-webfont-bdd5fe963cf9a6bcf9c449166e2e5a57.woff2" for 127.0.0.1 at 2015-04-08 10:34:56 +0200
61889
+
61890
+
61891
+ Started GET "/flyboy/goals/1" for 127.0.0.1 at 2015-04-08 10:34:59 +0200
61892
+ Processing by Flyboy::GoalsController#show as HTML
61893
+ Parameters: {"id"=>"1"}
61894
+ Flyboy::Goal Load (0.1ms) SELECT "flyboy_goals".* FROM "flyboy_goals" WHERE "flyboy_goals"."id" = ? LIMIT 1 [["id", 1]]
61895
+  (0.5ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? AND "flyboy_tasks"."done" = 'f' [["goal_id", 1]]
61896
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/_actions.html.slim (4.4ms)
61897
+  (0.1ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 1]]
61898
+  (0.1ms) SELECT SUM("flyboy_tasks"."progress") FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 1]]
61899
+ CACHE (0.0ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 1]]
61900
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/_context.html.slim (9.2ms)
61901
+ Flyboy::Task Load (0.1ms) SELECT "flyboy_tasks".* FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? ORDER BY term ASC, term DESC [["goal_id", 1]]
61902
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/tasks/_list.html.slim (8.5ms)
61903
+ Rendered /Users/benoit/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/dorsale-1.1.3/app/views/dorsale/_contextual.html.slim (0.7ms)
61904
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/show.html.slim within layouts/application (23.5ms)
61905
+ Completed 200 OK in 67ms (Views: 64.4ms | ActiveRecord: 0.9ms)
61906
+
61907
+
61908
+ Started GET "/assets/application-34d3f0701c71cc6dbf158467a81fd55b.css?body=1" for 127.0.0.1 at 2015-04-08 10:34:59 +0200
61909
+
61910
+
61911
+ Started GET "/assets/application-ccad13f64a955058eed40f9a74e81c11.js?body=1" for 127.0.0.1 at 2015-04-08 10:34:59 +0200
61912
+
61913
+
61914
+ Started GET "/assets/jquery-87424c3c19e96d4fb033c10ebe21ec40.js?body=1" for 127.0.0.1 at 2015-04-08 10:34:59 +0200
61915
+
61916
+
61917
+ Started GET "/assets/jquery_ujs-e27bd20a10d28155845a22d71ef94f2f.js?body=1" for 127.0.0.1 at 2015-04-08 10:34:59 +0200
61918
+
61919
+
61920
+ Started GET "/assets/font-awesome/fontawesome-webfont-bdd5fe963cf9a6bcf9c449166e2e5a57.woff2" for 127.0.0.1 at 2015-04-08 10:34:59 +0200
61921
+
61922
+
61923
+ Started GET "/flyboy/goals/5" for 127.0.0.1 at 2015-04-08 10:35:03 +0200
61924
+ Processing by Flyboy::GoalsController#show as HTML
61925
+ Parameters: {"id"=>"5"}
61926
+ Flyboy::Goal Load (0.1ms) SELECT "flyboy_goals".* FROM "flyboy_goals" WHERE "flyboy_goals"."id" = ? LIMIT 1 [["id", 5]]
61927
+  (0.1ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? AND "flyboy_tasks"."done" = 'f' [["goal_id", 5]]
61928
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/_actions.html.slim (4.0ms)
61929
+  (0.1ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 5]]
61930
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/_context.html.slim (7.5ms)
61931
+ Flyboy::Task Load (0.1ms) SELECT "flyboy_tasks".* FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? ORDER BY term ASC, term DESC [["goal_id", 5]]
61932
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/tasks/_list.html.slim (0.9ms)
61933
+ Rendered /Users/benoit/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/dorsale-1.1.3/app/views/dorsale/_contextual.html.slim (0.2ms)
61934
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/show.html.slim within layouts/application (13.5ms)
61935
+ Completed 200 OK in 55ms (Views: 53.0ms | ActiveRecord: 0.4ms)
61936
+
61937
+
61938
+ Started GET "/assets/application-34d3f0701c71cc6dbf158467a81fd55b.css?body=1" for 127.0.0.1 at 2015-04-08 10:35:03 +0200
61939
+
61940
+
61941
+ Started GET "/assets/jquery-87424c3c19e96d4fb033c10ebe21ec40.js?body=1" for 127.0.0.1 at 2015-04-08 10:35:03 +0200
61942
+
61943
+
61944
+ Started GET "/assets/application-ccad13f64a955058eed40f9a74e81c11.js?body=1" for 127.0.0.1 at 2015-04-08 10:35:03 +0200
61945
+
61946
+
61947
+ Started GET "/assets/jquery_ujs-e27bd20a10d28155845a22d71ef94f2f.js?body=1" for 127.0.0.1 at 2015-04-08 10:35:03 +0200
61948
+
61949
+
61950
+ Started GET "/assets/font-awesome/fontawesome-webfont-bdd5fe963cf9a6bcf9c449166e2e5a57.woff2" for 127.0.0.1 at 2015-04-08 10:35:03 +0200
61951
+
61952
+
61953
+ Started GET "/flyboy/goals/3" for 127.0.0.1 at 2015-04-08 10:35:07 +0200
61954
+ Processing by Flyboy::GoalsController#show as HTML
61955
+ Parameters: {"id"=>"3"}
61956
+ Flyboy::Goal Load (0.1ms) SELECT "flyboy_goals".* FROM "flyboy_goals" WHERE "flyboy_goals"."id" = ? LIMIT 1 [["id", 3]]
61957
+  (0.1ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? AND "flyboy_tasks"."done" = 'f' [["goal_id", 3]]
61958
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/_actions.html.slim (4.4ms)
61959
+  (0.1ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 3]]
61960
+  (0.1ms) SELECT SUM("flyboy_tasks"."progress") FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 3]]
61961
+ CACHE (0.0ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 3]]
61962
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/_context.html.slim (9.2ms)
61963
+ Flyboy::Task Load (0.1ms) SELECT "flyboy_tasks".* FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? ORDER BY term ASC, term DESC [["goal_id", 3]]
61964
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/tasks/_list.html.slim (3.1ms)
61965
+ Rendered /Users/benoit/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/dorsale-1.1.3/app/views/dorsale/_contextual.html.slim (0.3ms)
61966
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/show.html.slim within layouts/application (17.3ms)
61967
+ Completed 200 OK in 61ms (Views: 58.4ms | ActiveRecord: 0.6ms)
61968
+
61969
+
61970
+ Started GET "/assets/application-34d3f0701c71cc6dbf158467a81fd55b.css?body=1" for 127.0.0.1 at 2015-04-08 10:35:07 +0200
61971
+
61972
+
61973
+ Started GET "/assets/jquery_ujs-e27bd20a10d28155845a22d71ef94f2f.js?body=1" for 127.0.0.1 at 2015-04-08 10:35:07 +0200
61974
+
61975
+
61976
+ Started GET "/assets/jquery-87424c3c19e96d4fb033c10ebe21ec40.js?body=1" for 127.0.0.1 at 2015-04-08 10:35:07 +0200
61977
+
61978
+
61979
+ Started GET "/assets/application-ccad13f64a955058eed40f9a74e81c11.js?body=1" for 127.0.0.1 at 2015-04-08 10:35:07 +0200
61980
+
61981
+
61982
+ Started GET "/assets/font-awesome/fontawesome-webfont-bdd5fe963cf9a6bcf9c449166e2e5a57.woff2" for 127.0.0.1 at 2015-04-08 10:35:07 +0200
61983
+
61984
+
61985
+ Started GET "/flyboy/goals/1" for 127.0.0.1 at 2015-04-08 10:35:14 +0200
61986
+ Processing by Flyboy::GoalsController#show as HTML
61987
+ Parameters: {"id"=>"1"}
61988
+ Flyboy::Goal Load (0.1ms) SELECT "flyboy_goals".* FROM "flyboy_goals" WHERE "flyboy_goals"."id" = ? LIMIT 1 [["id", 1]]
61989
+  (0.1ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? AND "flyboy_tasks"."done" = 'f' [["goal_id", 1]]
61990
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/_actions.html.slim (3.7ms)
61991
+  (0.1ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 1]]
61992
+  (0.1ms) SELECT SUM("flyboy_tasks"."progress") FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 1]]
61993
+ CACHE (0.0ms) SELECT COUNT(*) FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? [["goal_id", 1]]
61994
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/_context.html.slim (9.0ms)
61995
+ Flyboy::Task Load (0.1ms) SELECT "flyboy_tasks".* FROM "flyboy_tasks" WHERE "flyboy_tasks"."goal_id" = ? ORDER BY term ASC, term DESC [["goal_id", 1]]
61996
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/tasks/_list.html.slim (7.7ms)
61997
+ Rendered /Users/benoit/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/dorsale-1.1.3/app/views/dorsale/_contextual.html.slim (0.6ms)
61998
+ Rendered /Users/benoit/www/agilidee/flyboy/app/views/flyboy/goals/show.html.slim within layouts/application (23.1ms)
61999
+ Completed 200 OK in 119ms (Views: 117.0ms | ActiveRecord: 0.6ms)
62000
+
62001
+
62002
+ Started GET "/assets/application-34d3f0701c71cc6dbf158467a81fd55b.css?body=1" for 127.0.0.1 at 2015-04-08 10:35:14 +0200
62003
+
62004
+
62005
+ Started GET "/assets/application-ccad13f64a955058eed40f9a74e81c11.js?body=1" for 127.0.0.1 at 2015-04-08 10:35:14 +0200
62006
+
62007
+
62008
+ Started GET "/assets/jquery-87424c3c19e96d4fb033c10ebe21ec40.js?body=1" for 127.0.0.1 at 2015-04-08 10:35:14 +0200
62009
+
62010
+
62011
+ Started GET "/assets/jquery_ujs-e27bd20a10d28155845a22d71ef94f2f.js?body=1" for 127.0.0.1 at 2015-04-08 10:35:14 +0200
62012
+
62013
+
62014
+ Started GET "/assets/font-awesome/fontawesome-webfont-bdd5fe963cf9a6bcf9c449166e2e5a57.woff2" for 127.0.0.1 at 2015-04-08 10:35:14 +0200