test/dummy/log/test.log in adherent-0.1.4 vs test/dummy/log/test.log in adherent-0.1.5

- old
+ new

@@ -156265,5 +156265,6929 @@  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN +  (0.4ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml (65.6ms) +  (0.2ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml (64.8ms) +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +Connecting to database specified by database.yml +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml (31.7ms) +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml (61.7ms) +  (0.2ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml (61.1ms) +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml (61.3ms) +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml (142.8ms) +  (0.2ms) ROLLBACK +Connecting to database specified by database.yml +  (0.2ms) BEGIN + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml (7.4ms) +  (0.2ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (134.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml (189.0ms) +  (1.3ms) ROLLBACK +Connecting to database specified by database.yml +  (0.0ms) BEGIN + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (260.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml (271.7ms) +  (0.2ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (111.0ms) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml (121.8ms) +  (0.2ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (108.0ms) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml (118.7ms) +  (0.2ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Organism Load (66.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (1.3ms) SAVEPOINT active_record_1 + SQL (200.1ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:10:54 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:10:54 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (14.1ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 16) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 16) LIMIT 1 + SQL (126.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:10:55 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 16], ["updated_at", Fri, 30 Aug 2013 17:10:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (43.9ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 11 + Adherent::Adhesion Load (17.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 11 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (60.1ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:bf8c310,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:10:55 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 11], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:10:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/11/payments/new" for 127.0.0.1 at 2013-08-30 19:10:55 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"11"} + Organism Load (6.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.8ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "11"]] + Adherent::Adhesion Load (63.0ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 11 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (62.6ms) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml within layouts/adherent/application (83.0ms) + Rendered layouts/adherent/_header.html.haml (0.8ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (3.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (1.1ms) +Completed 200 OK in 221ms (Views: 113.8ms | ActiveRecord: 76.0ms) +  (13.5ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 17) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (1.1ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 17) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 17], ["updated_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 12 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 12 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:c428388,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 12], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/12/payments/new" for 127.0.0.1 at 2013-08-30 19:10:56 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"12"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "12"]] + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 12 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (5.8ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 20ms (Views: 12.9ms | ActiveRecord: 1.3ms) +  (1.8ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 12 +Started POST "/adherent/members/12/payments" for 127.0.0.1 at 2013-08-30 19:10:56 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"150.25", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"12"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "12"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (36.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b66fbec,'0.15025E3',18(18)>], ["created_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 12], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00]] + Adherent::Member Load (1.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 12 LIMIT 1 + Adherent::Adhesion Load (1.8ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 12 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/12/payments +Completed 302 Found in 96ms (ActiveRecord: 43.2ms) +Started GET "/adherent/members/12/payments" for 127.0.0.1 at 2013-08-30 19:10:56 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"12"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "12"]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 12 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 10 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 10 +  (1.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 10 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 10 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 10 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 12 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (13.0ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.3ms) +Completed 200 OK in 30ms (Views: 22.5ms | ActiveRecord: 3.9ms) +  (0.4ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 12 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 18) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 18) LIMIT 1 + SQL (0.2ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 18], ["updated_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.1ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 13 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 13 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:bd64f60,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 13], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/13/payments/new" for 127.0.0.1 at 2013-08-30 19:10:56 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"13"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "13"]] + Adherent::Adhesion Load (0.9ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 13 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (4.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 17ms (Views: 8.1ms | ActiveRecord: 1.6ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 19) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 19) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 19], ["updated_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.1ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 14 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 14 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:c248194,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 14], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:c262774,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 14], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 14 LIMIT 1 + Adherent::Adhesion Load (0.4ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 14 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/14/payments" for 127.0.0.1 at 2013-08-30 19:10:56 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"14"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "14"]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 14 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 11 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 11 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 11 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 11 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 11 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 14 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (5.7ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 16ms (Views: 12.0ms | ActiveRecord: 2.0ms) +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 20) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 20) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 20], ["updated_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 15 + Adherent::Adhesion Load (1.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 15 ORDER BY to_date DESC LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:c32f788,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 15], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:c33ec88,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 15], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:10:56 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 15 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 15 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/15/payments" for 127.0.0.1 at 2013-08-30 19:10:56 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"15"} + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "15"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 15 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 12 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 12 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 12 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 12 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 12 + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 15 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (8.4ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 18ms (Views: 14.3ms | ActiveRecord: 2.0ms) +Started GET "/adherent/payments/12/reglements/new" for 127.0.0.1 at 2013-08-30 19:10:57 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"12"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.6ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "12"]] + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 15 LIMIT 1 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 12 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 12 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 12 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 12 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (9.5ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 36ms (Views: 20.5ms | ActiveRecord: 2.5ms) +  (2.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN +  (4.0ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +Connecting to database specified by database.yml +  (0.2ms) BEGIN + Organism Load (0.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (3.6ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:12:28 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:12:28 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 21) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 21) LIMIT 1 + SQL (0.7ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:12:28 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 21], ["updated_at", Fri, 30 Aug 2013 17:12:28 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 16 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 16 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a71a520,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:12:28 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 16], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:12:28 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a9e799c,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:12:28 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 16], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:12:28 UTC +00:00]] + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 16 LIMIT 1 + Adherent::Adhesion Load (1.4ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 16 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/16/payments" for 127.0.0.1 at 2013-08-30 19:12:29 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"16"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "16"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 16 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 13 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 13 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 13 + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 13 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 13 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 16 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (12.3ms) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/index.html.haml within layouts/adherent/application (67.7ms) + Rendered layouts/adherent/_header.html.haml (1.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (1.9ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (1.6ms) +Completed 200 OK in 90ms (Views: 83.7ms | ActiveRecord: 3.1ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 22) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 22) LIMIT 1 + SQL (1.1ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 22], ["updated_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 17 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 17 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a9f89e0,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 17], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aa5d200,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 17], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 17 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 17 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/17/payments" for 127.0.0.1 at 2013-08-30 19:12:29 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"17"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "17"]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 17 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 14 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 14 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 14 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 14 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 14 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 17 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.8ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.4ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.7ms) +Completed 200 OK in 17ms (Views: 13.4ms | ActiveRecord: 2.2ms) +Started GET "/adherent/payments/14/reglements/new" for 127.0.0.1 at 2013-08-30 19:12:29 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"14"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "14"]] + Adherent::Member Load (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 17 LIMIT 1 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 14 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 14 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 14 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 14 + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (25.1ms) + Rendered layouts/adherent/_header.html.haml (0.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 47ms (Views: 33.8ms | ActiveRecord: 2.0ms) +  (0.6ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 23) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 23) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 23], ["updated_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 18 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 18 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b2548c8,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 18], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/18/payments/new" for 127.0.0.1 at 2013-08-30 19:12:29 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"18"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "18"]] + Adherent::Adhesion Load (0.4ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 18 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (9.9ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 25ms (Views: 19.1ms | ActiveRecord: 0.9ms) +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.2ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 24) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 24) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 24], ["updated_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 19 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 19 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b34005c,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 19], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/19/payments/new" for 127.0.0.1 at 2013-08-30 19:12:29 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"19"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "19"]] + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 19 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (5.5ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 14ms (Views: 9.1ms | ActiveRecord: 1.1ms) +  (0.2ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 19 +Started POST "/adherent/members/19/payments" for 127.0.0.1 at 2013-08-30 19:12:29 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"150.25", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"19"} + Organism Load (0.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.8ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "19"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (22.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b43d248,'0.15025E3',18(18)>], ["created_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 19], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 19 LIMIT 1 + Adherent::Adhesion Load (0.2ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 19 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/19/payments +Completed 302 Found in 34ms (ActiveRecord: 23.9ms) +Started GET "/adherent/members/19/payments" for 127.0.0.1 at 2013-08-30 19:12:29 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"19"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "19"]] + Adherent::Payment Load (0.7ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 19 + Adherent::Reglement Load (0.7ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 15 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 15 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 15 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 15 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 15 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 19 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (7.3ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 58ms (Views: 52.6ms | ActiveRecord: 2.9ms) +  (0.3ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 19 +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (1.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 25) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 25) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 25], ["updated_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.1ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 20 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 20 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a5fe1dc,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 20], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:12:29 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/20/payments/new" for 127.0.0.1 at 2013-08-30 19:12:29 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"20"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "20"]] + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 20 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (7.1ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 17ms (Views: 12.0ms | ActiveRecord: 0.9ms) +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Organism Load (0.8ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.1ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:15:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:15:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 26) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 26) LIMIT 1 + SQL (0.6ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:15:47 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 26], ["updated_at", Fri, 30 Aug 2013 17:15:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 21 + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 21 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:9d84b50,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:15:47 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 21], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:15:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/21/payments/new" for 127.0.0.1 at 2013-08-30 19:15:48 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"21"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "21"]] + Adherent::Adhesion Load (1.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 21 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +ERROR: compiling __home_jcl_rails_project__dherent_app_views_adherent_payments__form_html_haml__390096398_90607040 RAISED /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml:7: syntax error, unexpected ')', expecting '}' +...'span6', value:@payment.amount)}, :as=>:french_decimal +... ^ +Function body: def __home_jcl_rails_project__dherent_app_views_adherent_payments__form_html_haml__390096398_90607040(local_assigns, output_buffer) + _old_virtual_path, @virtual_path = @virtual_path, "adherent/payments/_form";_old_output_buffer = @output_buffer;form = local_assigns[:form];;begin;extend Haml::Helpers;_hamlout = @haml_buffer = Haml::Buffer.new(haml_buffer, {:autoclose=>["meta", "img", "link", "br", "hr", "input", "area", "param", "col", "base"], :preserve=>["textarea", "pre", "code"], :attr_wrapper=>"'", :ugly=>true, :format=>:html5, :encoding=>"UTF-8", :escape_html=>true, :escape_attrs=>true, :hyphenate_data_attrs=>true, :cdata=>false});_erbout = _hamlout.buffer;@output_buffer = output_buffer ||= ActionView::OutputBuffer.new rescue nil;;_hamlout.buffer << "<div class='inputs row-fluid' id='transfer'>\n"; +haml_temp = simple_form_for([@member, @payment], :html=>{class:'form-inline'}) do |f| +_hamlout.buffer << "#{_hamlout.format_script_false_false_false_true_false_true_true((f.error_notification +));}\n<div class='row-fluid'>\n<div class='span12'>\n#{ + +_hamlout.format_script_false_false_false_true_false_true_true(( f.input :date, wrapper_html:{class:'span2'}, label_html:{class: 'span4'}, input_html:{class:'span8', value:@payment.date}, :as=>:date_picker +));}\n#{_hamlout.format_script_false_false_false_true_false_true_true(( f.input :amount, wrapper_html:{class:'span2'}, label_html:{class: 'span6'}, input_html:{class:'span6', value:@payment.amount)}, :as=>:french_decimal +));}\n#{_hamlout.format_script_false_false_false_true_false_true_true(( f.input :mode, wrapper_html:{class:'span3'}, :collection=>Adherent::MODES, prompt:'Choisissez', label_html:{class: 'span6'}, input_html:{class:'span6'} +));}\n</div>\n</div>\n<div class='row-fluid'>\n<div class='span12'>\n<div class='form-actions'>\n#{ + + +_hamlout.format_script_false_false_false_true_false_true_true(( f.button :submit, id: 'new_payement', class: "btn-primary span2" +));}\n</div>\n</div>\n</div>\n";end;_hamlout.buffer << _hamlout.format_script_false_false_false_true_false_false_true(haml_temp);_hamlout.buffer << "</div>\n";::Haml::Util.html_safe(_erbout);ensure;@haml_buffer = @haml_buffer.upper if @haml_buffer;end; + ensure + @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer + end + +Backtrace: /home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:297:in `module_eval' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:297:in `compile' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:244:in `block in compile!' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:232:in `synchronize' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:232:in `compile!' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:144:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:143:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/partial_renderer.rb:265:in `render_partial' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/partial_renderer.rb:238:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/partial_renderer.rb:237:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/renderer.rb:41:in `render_partial' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/helpers/rendering_helper.rb:27:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/haml-4.0.3/lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/haml-4.0.3/lib/haml/helpers.rb:89:in `non_haml' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/haml-4.0.3/lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' +/home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml:6:in `__home_jcl_rails_project__dherent_app_views_adherent_payments_new_html_haml___809747168_90494730' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:145:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:143:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:48:in `block (2 levels) in render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:47:in `block in render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:55:in `render_with_layout' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:46:in `render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:19:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/renderer.rb:36:in `render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/renderer.rb:17:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:110:in `_render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/streaming.rb:225:in `_render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:103:in `render_to_body' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/renderers.rb:28:in `render_to_body' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/compatibility.rb:50:in `render_to_body' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:88:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rendering.rb:16:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' +/home/jcl/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/core_ext/benchmark.rb:5:in `ms' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:40:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:39:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/implicit_render.rb:10:in `default_render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/implicit_render.rb:5:in `send_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/base.rb:167:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rendering.rb:10:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/callbacks.rb:18:in `block in process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:436:in `_run__771684601__process_action__706458527__callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `__run_callback' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:in `run_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/callbacks.rb:17:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rescue.rb:29:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:29:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/params_wrapper.rb:207:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/railties/controller_runtime.rb:18:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/base.rb:121:in `process' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:45:in `process' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal.rb:203:in `dispatch' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal.rb:246:in `block in action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:73:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:73:in `dispatch' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:36:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:608:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/engine.rb:484:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in `method_missing' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:608:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/head.rb:14:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/params_parser.rb:21:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/flash.rb:242:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/cookies.rb:341:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/query_cache.rb:64:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `_run__935819324__call__630133820__callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `__run_callback' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in `_run_call_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:in `run_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/callbacks.rb:27:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/remote_ip.rb:31:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/rack/logger.rb:32:in `call_app' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/rack/logger.rb:16:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/tagged_logging.rb:22:in `tagged' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/rack/logger.rb:16:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/request_id.rb:22:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/cache/strategy/local_cache.rb:72:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/static.rb:63:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/engine.rb:484:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/application.rb:231:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/builder.rb:134:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-test-0.6.2/lib/rack/mock_session.rb:30:in `request' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-test-0.6.2/lib/rack/test.rb:230:in `process_request' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-test-0.6.2/lib/rack/test.rb:57:in `get' +/home/jcl/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/forwardable.rb:171:in `get' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:62:in `process' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:21:in `visit' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/rack_test/driver.rb:32:in `visit' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/session.rb:157:in `visit' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/dsl.rb:161:in `visit' +/home/jcl/rails_project/Adherent/spec/requests/payments_spec.rb:70:in `block (3 levels) in <top (required)>' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:237:in `instance_eval' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:237:in `instance_eval' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:21:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `block in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:446:in `run_hook' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:345:in `run_before_each_hooks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:300:in `run_before_each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:113:in `block in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:254:in `with_around_each_hooks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:111:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:390:in `block in run_examples' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `map' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `run_examples' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:371:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `block in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `map' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `map' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/reporter.rb:58:in `report' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:25:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:77:in `rescue in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:73:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:17:in `block in autorun' + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (3.8ms) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml within layouts/adherent/application (10.0ms) +Completed 500 Internal Server Error in 39ms +  (0.8ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 27) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 27) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 27], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 22 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 22 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ad6fb78,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 22], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/22/payments/new" for 127.0.0.1 at 2013-08-30 19:15:48 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"22"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "22"]] + Adherent::Adhesion Load (0.4ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 22 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +ERROR: compiling __home_jcl_rails_project__dherent_app_views_adherent_payments__form_html_haml__390096398_90607040 RAISED /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml:7: syntax error, unexpected ')', expecting '}' +...'span6', value:@payment.amount)}, :as=>:french_decimal +... ^ +Function body: def __home_jcl_rails_project__dherent_app_views_adherent_payments__form_html_haml__390096398_90607040(local_assigns, output_buffer) + _old_virtual_path, @virtual_path = @virtual_path, "adherent/payments/_form";_old_output_buffer = @output_buffer;form = local_assigns[:form];;begin;extend Haml::Helpers;_hamlout = @haml_buffer = Haml::Buffer.new(haml_buffer, {:autoclose=>["meta", "img", "link", "br", "hr", "input", "area", "param", "col", "base"], :preserve=>["textarea", "pre", "code"], :attr_wrapper=>"'", :ugly=>true, :format=>:html5, :encoding=>"UTF-8", :escape_html=>true, :escape_attrs=>true, :hyphenate_data_attrs=>true, :cdata=>false});_erbout = _hamlout.buffer;@output_buffer = output_buffer ||= ActionView::OutputBuffer.new rescue nil;;_hamlout.buffer << "<div class='inputs row-fluid' id='transfer'>\n"; +haml_temp = simple_form_for([@member, @payment], :html=>{class:'form-inline'}) do |f| +_hamlout.buffer << "#{_hamlout.format_script_false_false_false_true_false_true_true((f.error_notification +));}\n<div class='row-fluid'>\n<div class='span12'>\n#{ + +_hamlout.format_script_false_false_false_true_false_true_true(( f.input :date, wrapper_html:{class:'span2'}, label_html:{class: 'span4'}, input_html:{class:'span8', value:@payment.date}, :as=>:date_picker +));}\n#{_hamlout.format_script_false_false_false_true_false_true_true(( f.input :amount, wrapper_html:{class:'span2'}, label_html:{class: 'span6'}, input_html:{class:'span6', value:@payment.amount)}, :as=>:french_decimal +));}\n#{_hamlout.format_script_false_false_false_true_false_true_true(( f.input :mode, wrapper_html:{class:'span3'}, :collection=>Adherent::MODES, prompt:'Choisissez', label_html:{class: 'span6'}, input_html:{class:'span6'} +));}\n</div>\n</div>\n<div class='row-fluid'>\n<div class='span12'>\n<div class='form-actions'>\n#{ + + +_hamlout.format_script_false_false_false_true_false_true_true(( f.button :submit, id: 'new_payement', class: "btn-primary span2" +));}\n</div>\n</div>\n</div>\n";end;_hamlout.buffer << _hamlout.format_script_false_false_false_true_false_false_true(haml_temp);_hamlout.buffer << "</div>\n";::Haml::Util.html_safe(_erbout);ensure;@haml_buffer = @haml_buffer.upper if @haml_buffer;end; + ensure + @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer + end + +Backtrace: /home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:297:in `module_eval' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:297:in `compile' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:244:in `block in compile!' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:232:in `synchronize' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:232:in `compile!' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:144:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:143:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/partial_renderer.rb:265:in `render_partial' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/partial_renderer.rb:238:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/partial_renderer.rb:237:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/renderer.rb:41:in `render_partial' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/helpers/rendering_helper.rb:27:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/haml-4.0.3/lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/haml-4.0.3/lib/haml/helpers.rb:89:in `non_haml' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/haml-4.0.3/lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' +/home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml:6:in `__home_jcl_rails_project__dherent_app_views_adherent_payments_new_html_haml___809747168_90494730' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:145:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:143:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:48:in `block (2 levels) in render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:47:in `block in render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:55:in `render_with_layout' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:46:in `render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:19:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/renderer.rb:36:in `render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/renderer.rb:17:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:110:in `_render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/streaming.rb:225:in `_render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:103:in `render_to_body' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/renderers.rb:28:in `render_to_body' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/compatibility.rb:50:in `render_to_body' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:88:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rendering.rb:16:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' +/home/jcl/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/core_ext/benchmark.rb:5:in `ms' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:40:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:39:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/implicit_render.rb:10:in `default_render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/implicit_render.rb:5:in `send_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/base.rb:167:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rendering.rb:10:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/callbacks.rb:18:in `block in process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:436:in `_run__771684601__process_action__706458527__callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `__run_callback' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:in `run_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/callbacks.rb:17:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rescue.rb:29:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:29:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/params_wrapper.rb:207:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/railties/controller_runtime.rb:18:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/base.rb:121:in `process' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:45:in `process' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal.rb:203:in `dispatch' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal.rb:246:in `block in action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:73:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:73:in `dispatch' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:36:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:608:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/engine.rb:484:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in `method_missing' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:608:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/head.rb:14:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/params_parser.rb:21:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/flash.rb:242:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/cookies.rb:341:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/query_cache.rb:64:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `_run__935819324__call__630133820__callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `__run_callback' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in `_run_call_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:in `run_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/callbacks.rb:27:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/remote_ip.rb:31:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/rack/logger.rb:32:in `call_app' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/rack/logger.rb:16:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/tagged_logging.rb:22:in `tagged' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/rack/logger.rb:16:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/request_id.rb:22:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/cache/strategy/local_cache.rb:72:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/static.rb:63:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/engine.rb:484:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/application.rb:231:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/builder.rb:134:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-test-0.6.2/lib/rack/mock_session.rb:30:in `request' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-test-0.6.2/lib/rack/test.rb:230:in `process_request' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-test-0.6.2/lib/rack/test.rb:57:in `get' +/home/jcl/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/forwardable.rb:171:in `get' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:62:in `process' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:21:in `visit' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/rack_test/driver.rb:32:in `visit' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/session.rb:157:in `visit' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/dsl.rb:161:in `visit' +/home/jcl/rails_project/Adherent/spec/requests/payments_spec.rb:70:in `block (3 levels) in <top (required)>' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:237:in `instance_eval' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:237:in `instance_eval' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:21:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `block in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:85:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/hooks.rb:446:in `run_hook' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:345:in `run_before_each_hooks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:300:in `run_before_each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:113:in `block in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:254:in `with_around_each_hooks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:111:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:390:in `block in run_examples' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `map' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `run_examples' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:371:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `block in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `map' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `map' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/reporter.rb:58:in `report' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:25:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:77:in `rescue in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:73:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:17:in `block in autorun' + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (2.6ms) +Completed 500 Internal Server Error in 10ms +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 28) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 28) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 28], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 23 + Adherent::Adhesion Load (0.1ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 23 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:9794b14,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 23], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/23/payments/new" for 127.0.0.1 at 2013-08-30 19:15:48 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"23"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "23"]] + Adherent::Adhesion Load (1.2ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 23 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +ERROR: compiling __home_jcl_rails_project__dherent_app_views_adherent_payments__form_html_haml__390096398_90607040 RAISED /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml:7: syntax error, unexpected ')', expecting '}' +...'span6', value:@payment.amount)}, :as=>:french_decimal +... ^ +Function body: def __home_jcl_rails_project__dherent_app_views_adherent_payments__form_html_haml__390096398_90607040(local_assigns, output_buffer) + _old_virtual_path, @virtual_path = @virtual_path, "adherent/payments/_form";_old_output_buffer = @output_buffer;form = local_assigns[:form];;begin;extend Haml::Helpers;_hamlout = @haml_buffer = Haml::Buffer.new(haml_buffer, {:autoclose=>["meta", "img", "link", "br", "hr", "input", "area", "param", "col", "base"], :preserve=>["textarea", "pre", "code"], :attr_wrapper=>"'", :ugly=>true, :format=>:html5, :encoding=>"UTF-8", :escape_html=>true, :escape_attrs=>true, :hyphenate_data_attrs=>true, :cdata=>false});_erbout = _hamlout.buffer;@output_buffer = output_buffer ||= ActionView::OutputBuffer.new rescue nil;;_hamlout.buffer << "<div class='inputs row-fluid' id='transfer'>\n"; +haml_temp = simple_form_for([@member, @payment], :html=>{class:'form-inline'}) do |f| +_hamlout.buffer << "#{_hamlout.format_script_false_false_false_true_false_true_true((f.error_notification +));}\n<div class='row-fluid'>\n<div class='span12'>\n#{ + +_hamlout.format_script_false_false_false_true_false_true_true(( f.input :date, wrapper_html:{class:'span2'}, label_html:{class: 'span4'}, input_html:{class:'span8', value:@payment.date}, :as=>:date_picker +));}\n#{_hamlout.format_script_false_false_false_true_false_true_true(( f.input :amount, wrapper_html:{class:'span2'}, label_html:{class: 'span6'}, input_html:{class:'span6', value:@payment.amount)}, :as=>:french_decimal +));}\n#{_hamlout.format_script_false_false_false_true_false_true_true(( f.input :mode, wrapper_html:{class:'span3'}, :collection=>Adherent::MODES, prompt:'Choisissez', label_html:{class: 'span6'}, input_html:{class:'span6'} +));}\n</div>\n</div>\n<div class='row-fluid'>\n<div class='span12'>\n<div class='form-actions'>\n#{ + + +_hamlout.format_script_false_false_false_true_false_true_true(( f.button :submit, id: 'new_payement', class: "btn-primary span2" +));}\n</div>\n</div>\n</div>\n";end;_hamlout.buffer << _hamlout.format_script_false_false_false_true_false_false_true(haml_temp);_hamlout.buffer << "</div>\n";::Haml::Util.html_safe(_erbout);ensure;@haml_buffer = @haml_buffer.upper if @haml_buffer;end; + ensure + @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer + end + +Backtrace: /home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:297:in `module_eval' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:297:in `compile' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:244:in `block in compile!' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:232:in `synchronize' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:232:in `compile!' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:144:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:143:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/partial_renderer.rb:265:in `render_partial' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/partial_renderer.rb:238:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/partial_renderer.rb:237:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/renderer.rb:41:in `render_partial' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/helpers/rendering_helper.rb:27:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/haml-4.0.3/lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/haml-4.0.3/lib/haml/helpers.rb:89:in `non_haml' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/haml-4.0.3/lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' +/home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml:6:in `__home_jcl_rails_project__dherent_app_views_adherent_payments_new_html_haml___809747168_90494730' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:145:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:143:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:48:in `block (2 levels) in render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:47:in `block in render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:55:in `render_with_layout' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:46:in `render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:19:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/renderer.rb:36:in `render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/renderer.rb:17:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:110:in `_render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/streaming.rb:225:in `_render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:103:in `render_to_body' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/renderers.rb:28:in `render_to_body' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/compatibility.rb:50:in `render_to_body' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:88:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rendering.rb:16:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' +/home/jcl/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/core_ext/benchmark.rb:5:in `ms' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:40:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:39:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/implicit_render.rb:10:in `default_render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/implicit_render.rb:5:in `send_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/base.rb:167:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rendering.rb:10:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/callbacks.rb:18:in `block in process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:436:in `_run__771684601__process_action__706458527__callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `__run_callback' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:in `run_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/callbacks.rb:17:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rescue.rb:29:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:29:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/params_wrapper.rb:207:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/railties/controller_runtime.rb:18:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/base.rb:121:in `process' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:45:in `process' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal.rb:203:in `dispatch' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal.rb:246:in `block in action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:73:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:73:in `dispatch' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:36:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:608:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/engine.rb:484:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in `method_missing' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:608:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/head.rb:14:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/params_parser.rb:21:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/flash.rb:242:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/cookies.rb:341:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/query_cache.rb:64:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `_run__935819324__call__630133820__callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `__run_callback' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in `_run_call_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:in `run_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/callbacks.rb:27:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/remote_ip.rb:31:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/rack/logger.rb:32:in `call_app' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/rack/logger.rb:16:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/tagged_logging.rb:22:in `tagged' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/rack/logger.rb:16:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/request_id.rb:22:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/cache/strategy/local_cache.rb:72:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/static.rb:63:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/engine.rb:484:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/application.rb:231:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/builder.rb:134:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-test-0.6.2/lib/rack/mock_session.rb:30:in `request' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-test-0.6.2/lib/rack/test.rb:230:in `process_request' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-test-0.6.2/lib/rack/test.rb:57:in `get' +/home/jcl/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/forwardable.rb:171:in `get' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:62:in `process' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:21:in `visit' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/rack_test/driver.rb:32:in `visit' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/session.rb:157:in `visit' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/dsl.rb:161:in `visit' +/home/jcl/rails_project/Adherent/spec/requests/payments_spec.rb:22:in `block (3 levels) in <top (required)>' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:114:in `instance_eval' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:114:in `block in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:254:in `with_around_each_hooks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:111:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:390:in `block in run_examples' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `map' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `run_examples' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:371:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `block in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `map' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `map' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/reporter.rb:58:in `report' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:25:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:77:in `rescue in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:73:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:17:in `block in autorun' + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (4.4ms) +Completed 500 Internal Server Error in 13ms +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.8ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 29) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 29) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 29], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 24 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 24 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a11a468,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 24], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/24/payments/new" for 127.0.0.1 at 2013-08-30 19:15:48 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"24"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "24"]] + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 24 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +ERROR: compiling __home_jcl_rails_project__dherent_app_views_adherent_payments__form_html_haml__390096398_90607040 RAISED /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml:7: syntax error, unexpected ')', expecting '}' +...'span6', value:@payment.amount)}, :as=>:french_decimal +... ^ +Function body: def __home_jcl_rails_project__dherent_app_views_adherent_payments__form_html_haml__390096398_90607040(local_assigns, output_buffer) + _old_virtual_path, @virtual_path = @virtual_path, "adherent/payments/_form";_old_output_buffer = @output_buffer;form = local_assigns[:form];;begin;extend Haml::Helpers;_hamlout = @haml_buffer = Haml::Buffer.new(haml_buffer, {:autoclose=>["meta", "img", "link", "br", "hr", "input", "area", "param", "col", "base"], :preserve=>["textarea", "pre", "code"], :attr_wrapper=>"'", :ugly=>true, :format=>:html5, :encoding=>"UTF-8", :escape_html=>true, :escape_attrs=>true, :hyphenate_data_attrs=>true, :cdata=>false});_erbout = _hamlout.buffer;@output_buffer = output_buffer ||= ActionView::OutputBuffer.new rescue nil;;_hamlout.buffer << "<div class='inputs row-fluid' id='transfer'>\n"; +haml_temp = simple_form_for([@member, @payment], :html=>{class:'form-inline'}) do |f| +_hamlout.buffer << "#{_hamlout.format_script_false_false_false_true_false_true_true((f.error_notification +));}\n<div class='row-fluid'>\n<div class='span12'>\n#{ + +_hamlout.format_script_false_false_false_true_false_true_true(( f.input :date, wrapper_html:{class:'span2'}, label_html:{class: 'span4'}, input_html:{class:'span8', value:@payment.date}, :as=>:date_picker +));}\n#{_hamlout.format_script_false_false_false_true_false_true_true(( f.input :amount, wrapper_html:{class:'span2'}, label_html:{class: 'span6'}, input_html:{class:'span6', value:@payment.amount)}, :as=>:french_decimal +));}\n#{_hamlout.format_script_false_false_false_true_false_true_true(( f.input :mode, wrapper_html:{class:'span3'}, :collection=>Adherent::MODES, prompt:'Choisissez', label_html:{class: 'span6'}, input_html:{class:'span6'} +));}\n</div>\n</div>\n<div class='row-fluid'>\n<div class='span12'>\n<div class='form-actions'>\n#{ + + +_hamlout.format_script_false_false_false_true_false_true_true(( f.button :submit, id: 'new_payement', class: "btn-primary span2" +));}\n</div>\n</div>\n</div>\n";end;_hamlout.buffer << _hamlout.format_script_false_false_false_true_false_false_true(haml_temp);_hamlout.buffer << "</div>\n";::Haml::Util.html_safe(_erbout);ensure;@haml_buffer = @haml_buffer.upper if @haml_buffer;end; + ensure + @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer + end + +Backtrace: /home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:297:in `module_eval' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:297:in `compile' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:244:in `block in compile!' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:232:in `synchronize' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:232:in `compile!' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:144:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:143:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/partial_renderer.rb:265:in `render_partial' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/partial_renderer.rb:238:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/partial_renderer.rb:237:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/renderer.rb:41:in `render_partial' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/helpers/rendering_helper.rb:27:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/haml-4.0.3/lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/haml-4.0.3/lib/haml/helpers.rb:89:in `non_haml' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/haml-4.0.3/lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' +/home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml:6:in `__home_jcl_rails_project__dherent_app_views_adherent_payments_new_html_haml___809747168_90494730' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:145:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/template.rb:143:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:48:in `block (2 levels) in render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:47:in `block in render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:55:in `render_with_layout' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:46:in `render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:19:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/renderer.rb:36:in `render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_view/renderer/renderer.rb:17:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:110:in `_render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/streaming.rb:225:in `_render_template' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:103:in `render_to_body' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/renderers.rb:28:in `render_to_body' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/compatibility.rb:50:in `render_to_body' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:88:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rendering.rb:16:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' +/home/jcl/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/core_ext/benchmark.rb:5:in `ms' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:40:in `block in render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:39:in `render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/implicit_render.rb:10:in `default_render' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/implicit_render.rb:5:in `send_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/base.rb:167:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rendering.rb:10:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/callbacks.rb:18:in `block in process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:436:in `_run__771684601__process_action__706458527__callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `__run_callback' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:in `run_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/callbacks.rb:17:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rescue.rb:29:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:29:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/params_wrapper.rb:207:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/railties/controller_runtime.rb:18:in `process_action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/base.rb:121:in `process' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:45:in `process' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal.rb:203:in `dispatch' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_controller/metal.rb:246:in `block in action' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:73:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:73:in `dispatch' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:36:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:608:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/engine.rb:484:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in `method_missing' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/journey-1.0.4/lib/journey/router.rb:56:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/routing/route_set.rb:608:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/head.rb:14:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/params_parser.rb:21:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/flash.rb:242:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/cookies.rb:341:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/query_cache.rb:64:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `_run__935819324__call__630133820__callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `__run_callback' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in `_run_call_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:in `run_callbacks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/callbacks.rb:27:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/remote_ip.rb:31:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/rack/logger.rb:32:in `call_app' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/rack/logger.rb:16:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/tagged_logging.rb:22:in `tagged' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/rack/logger.rb:16:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/request_id.rb:22:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.14/lib/active_support/cache/strategy/local_cache.rb:72:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/actionpack-3.2.14/lib/action_dispatch/middleware/static.rb:63:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/engine.rb:484:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.14/lib/rails/application.rb:231:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/builder.rb:134:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in `block in call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `each' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `call' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-test-0.6.2/lib/rack/mock_session.rb:30:in `request' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-test-0.6.2/lib/rack/test.rb:230:in `process_request' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rack-test-0.6.2/lib/rack/test.rb:57:in `get' +/home/jcl/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/forwardable.rb:171:in `get' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:62:in `process' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:21:in `visit' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/rack_test/driver.rb:32:in `visit' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/session.rb:157:in `visit' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/capybara-1.1.2/lib/capybara/dsl.rb:161:in `visit' +/home/jcl/rails_project/Adherent/spec/requests/payments_spec.rb:28:in `block (3 levels) in <top (required)>' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:114:in `instance_eval' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:114:in `block in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:254:in `with_around_each_hooks' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example.rb:111:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:390:in `block in run_examples' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `map' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:386:in `run_examples' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:371:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `block in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `map' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/example_group.rb:372:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `map' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:28:in `block in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/reporter.rb:58:in `report' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/command_line.rb:25:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:77:in `rescue in run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:73:in `run' +/home/jcl/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-2.14.5/lib/rspec/core/runner.rb:17:in `block in autorun' + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (4.3ms) +Completed 500 Internal Server Error in 12ms +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 30) LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 30) LIMIT 1 + SQL (0.7ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 30], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 25 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 25 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a2d7a80,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 25], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (38.1ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a523ba4,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 25], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 25 LIMIT 1 + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 25 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/25/payments" for 127.0.0.1 at 2013-08-30 19:15:48 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"25"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "25"]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 25 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 16 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 16 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 16 + Adherent::Reglement Load (0.6ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 16 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 16 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 25 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (11.5ms) + Rendered layouts/adherent/_header.html.haml (1.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (2.0ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (1.0ms) +Completed 200 OK in 32ms (Views: 25.9ms | ActiveRecord: 3.3ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 31) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 31) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 31], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 26 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 26 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a90a9c0,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 26], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a91aa78,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 26], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:15:48 UTC +00:00]] + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 26 LIMIT 1 + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 26 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/26/payments" for 127.0.0.1 at 2013-08-30 19:15:48 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"26"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (2.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "26"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 26 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 17 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 17 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 17 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 17 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 17 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 26 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (7.0ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 19ms (Views: 13.4ms | ActiveRecord: 4.1ms) +Started GET "/adherent/payments/17/reglements/new" for 127.0.0.1 at 2013-08-30 19:15:48 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"17"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "17"]] + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 26 LIMIT 1 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 17 +  (0.1ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 17 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 17 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 17 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (26.2ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 49ms (Views: 33.1ms | ActiveRecord: 2.1ms) +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.6ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (1.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 32) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 32) LIMIT 1 + SQL (0.6ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 32], ["updated_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 27 + Adherent::Adhesion Load (1.0ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 27 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a702ba0,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 27], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/27/payments/new" for 127.0.0.1 at 2013-08-30 19:16:11 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"27"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "27"]] + Adherent::Adhesion Load (1.2ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 27 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (25.8ms) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml within layouts/adherent/application (31.4ms) + Rendered layouts/adherent/_header.html.haml (0.8ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (2.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (1.5ms) +Completed 200 OK in 68ms (Views: 46.5ms | ActiveRecord: 4.0ms) +  (0.7ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 33) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 33) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 33], ["updated_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.1ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 28 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 28 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ab65710,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 28], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/28/payments/new" for 127.0.0.1 at 2013-08-30 19:16:11 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"28"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "28"]] + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 28 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (6.2ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.0ms) +Completed 200 OK in 17ms (Views: 10.1ms | ActiveRecord: 1.0ms) +  (0.3ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.1ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 34) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 34) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 34], ["updated_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 29 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 29 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ac1064c,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 29], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:16:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:8cbc228,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 29], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 29 LIMIT 1 + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 29 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/29/payments" for 127.0.0.1 at 2013-08-30 19:16:12 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"29"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "29"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 29 + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 18 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 18 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 18 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 18 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 18 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 29 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (11.7ms) + Rendered layouts/adherent/_header.html.haml (0.0ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 26ms (Views: 19.9ms | ActiveRecord: 3.1ms) +  (0.2ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 35) LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 35) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 35], ["updated_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.8ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 30 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 30 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a3c4df8,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 30], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a3f5430,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 30], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 30 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 30 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/30/payments" for 127.0.0.1 at 2013-08-30 19:16:12 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"30"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "30"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 30 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 19 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 19 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 19 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 19 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 19 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 30 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (7.4ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 17ms (Views: 12.1ms | ActiveRecord: 2.4ms) +Started GET "/adherent/payments/19/reglements/new" for 127.0.0.1 at 2013-08-30 19:16:12 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"19"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "19"]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 30 LIMIT 1 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 19 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 19 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 19 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 19 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (9.7ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 31ms (Views: 16.9ms | ActiveRecord: 2.4ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 36) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 36) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 36], ["updated_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 31 + Adherent::Adhesion Load (0.9ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 31 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aa371cc,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 31], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/31/payments/new" for 127.0.0.1 at 2013-08-30 19:16:12 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"31"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "31"]] + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 31 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (7.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 17ms (Views: 11.0ms | ActiveRecord: 1.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.7ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 37) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 37) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 37], ["updated_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 32 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 32 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aae4818,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 32], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/32/payments/new" for 127.0.0.1 at 2013-08-30 19:16:12 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"32"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (1.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "32"]] + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 32 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (5.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 18ms (Views: 9.5ms | ActiveRecord: 2.0ms) +  (0.2ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 32 +Started POST "/adherent/members/32/payments" for 127.0.0.1 at 2013-08-30 19:16:12 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"150.25", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"32"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "32"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:abc8cac,'0.15025E3',18(18)>], ["created_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 32], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:16:12 UTC +00:00]] + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 32 LIMIT 1 + Adherent::Adhesion Load (0.3ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 32 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/32/payments +Completed 302 Found in 10ms (ActiveRecord: 2.0ms) +Started GET "/adherent/members/32/payments" for 127.0.0.1 at 2013-08-30 19:16:12 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"32"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "32"]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 32 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 20 + Adherent::Reglement Load (0.1ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 20 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 20 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 20 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 20 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 32 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.5ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 14ms (Views: 10.5ms | ActiveRecord: 1.9ms) +  (0.2ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 32 +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.3ms) BEGIN + Organism Load (2.1ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.7ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:17:01 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:17:01 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (1.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 38) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 38) LIMIT 1 + SQL (0.6ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:17:01 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 38], ["updated_at", Fri, 30 Aug 2013 17:17:01 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 33 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 33 ORDER BY to_date DESC LIMIT 1 +  (1.7ms) SAVEPOINT active_record_1 + SQL (3.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b0b2b50,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:17:01 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 33], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:17:01 UTC +00:00]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/33/payments/new" for 127.0.0.1 at 2013-08-30 19:17:01 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"33"} + Organism Load (5.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (2.8ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "33"]] + Adherent::Adhesion Load (1.4ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 33 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (33.7ms) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml within layouts/adherent/application (40.4ms) + Rendered layouts/adherent/_header.html.haml (1.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (2.4ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (1.2ms) +Completed 200 OK in 117ms (Views: 68.6ms | ActiveRecord: 17.5ms) +  (4.6ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (4.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 39) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 39) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 39], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] +  (5.9ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 34 + Adherent::Adhesion Load (0.0ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 34 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b514d10,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 34], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/34/payments/new" for 127.0.0.1 at 2013-08-30 19:17:02 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"34"} + Organism Load (2.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (4.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "34"]] + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 34 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (13.8ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 28ms (Views: 17.1ms | ActiveRecord: 7.5ms) +  (0.7ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 40) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (4.7ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 40) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 40], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 35 + Adherent::Adhesion Load (0.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 35 ORDER BY to_date DESC LIMIT 1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b5c05ac,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 35], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] +  (2.5ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.2ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:966c7a0,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 35], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] + Adherent::Member Load (4.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 35 LIMIT 1 + Adherent::Adhesion Load (1.4ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 35 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/35/payments" for 127.0.0.1 at 2013-08-30 19:17:02 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"35"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "35"]] + Adherent::Payment Load (7.1ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 35 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 21 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 21 +  (2.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 21 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 21 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 21 + Adherent::Member Load (3.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 35 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (21.6ms) + Rendered layouts/adherent/_header.html.haml (8.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 60ms (Views: 33.6ms | ActiveRecord: 18.7ms) +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 41) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 41) LIMIT 1 + SQL (4.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 41], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 36 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 36 ORDER BY to_date DESC LIMIT 1 +  (3.6ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ad74dbc,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 36], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (5.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ada5368,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 36], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 36 LIMIT 1 + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 36 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/36/payments" for 127.0.0.1 at 2013-08-30 19:17:02 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"36"} + Organism Load (7.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "36"]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 36 + Adherent::Reglement Load (5.0ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 22 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 22 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 22 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 22 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 22 + Adherent::Member Load (3.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 36 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (13.9ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 33ms (Views: 14.3ms | ActiveRecord: 16.5ms) +Started GET "/adherent/payments/22/reglements/new" for 127.0.0.1 at 2013-08-30 19:17:02 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"22"} + Organism Load (3.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.7ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "22"]] + Adherent::Member Load (3.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 36 LIMIT 1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 22 +  (5.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 22 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 22 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 22 + Adherent::Adhesion Load (7.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (22.2ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 61ms (Views: 20.9ms | ActiveRecord: 21.1ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.8ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 42) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 42) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 42], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (4.0ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 37 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 37 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.8ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b3e7190,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 37], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] +  (2.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/37/payments/new" for 127.0.0.1 at 2013-08-30 19:17:02 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"37"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "37"]] + Adherent::Adhesion Load (1.4ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 37 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (4.5ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 24ms (Views: 16.8ms | ActiveRecord: 2.0ms) +  (8.2ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 37 +Started POST "/adherent/members/37/payments" for 127.0.0.1 at 2013-08-30 19:17:02 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"150.25", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"37"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "37"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (5.3ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b4cfee0,'0.15025E3',18(18)>], ["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 37], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 37 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 37 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/37/payments +Completed 302 Found in 22ms (ActiveRecord: 7.0ms) +Started GET "/adherent/members/37/payments" for 127.0.0.1 at 2013-08-30 19:17:02 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"37"} + Organism Load (3.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "37"]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 37 + Adherent::Reglement Load (0.1ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 23 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 23 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 23 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 23 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 23 + Adherent::Member Load (3.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 37 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (8.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 30ms (Views: 20.6ms | ActiveRecord: 7.6ms) +  (4.0ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 37 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (2.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (4.7ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 43) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 43) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 43], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (1.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 38 + Adherent::Adhesion Load (2.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 38 ORDER BY to_date DESC LIMIT 1 +  (3.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b59aa78,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 38], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:17:02 UTC +00:00]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/38/payments/new" for 127.0.0.1 at 2013-08-30 19:17:02 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"38"} + Organism Load (4.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (3.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "38"]] + Adherent::Adhesion Load (4.0ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 38 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (12.9ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.3ms) +Completed 200 OK in 46ms (Views: 18.4ms | ActiveRecord: 12.2ms) +  (5.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (5.1ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 44) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 44) LIMIT 1 + SQL (0.6ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 44], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.9ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 39 + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 39 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.8ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:bb3eba0,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 39], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/39/payments/new" for 127.0.0.1 at 2013-08-30 19:17:09 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"39"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "39"]] + Adherent::Adhesion Load (2.8ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 39 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (25.4ms) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml within layouts/adherent/application (31.7ms) + Rendered layouts/adherent/_header.html.haml (0.9ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (2.7ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (1.2ms) +Completed 200 OK in 70ms (Views: 47.4ms | ActiveRecord: 5.5ms) +  (0.2ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 45) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 45) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 45], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 40 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 40 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:bfa1738,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 40], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/40/payments/new" for 127.0.0.1 at 2013-08-30 19:17:09 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"40"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "40"]] + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 40 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (8.7ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 17ms (Views: 12.1ms | ActiveRecord: 1.1ms) +  (0.2ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 46) LIMIT 1 +  (0.7ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 46) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 46], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.1ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 41 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 41 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:c04872c,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 41], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a0f86ec,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 41], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] + Adherent::Member Load (0.9ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 41 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 41 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/41/payments" for 127.0.0.1 at 2013-08-30 19:17:09 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"41"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "41"]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 41 + Adherent::Reglement Load (1.0ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 24 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 24 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 24 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 24 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 24 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 41 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (11.1ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 25ms (Views: 19.5ms | ActiveRecord: 3.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 47) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 47) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 47], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.1ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 42 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 42 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b800e48,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 42], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b82d448,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 42], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 42 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 42 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/42/payments" for 127.0.0.1 at 2013-08-30 19:17:09 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"42"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "42"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 42 + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 25 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 25 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 25 + Adherent::Reglement Load (0.0ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 25 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 25 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 42 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.2ms) + Rendered layouts/adherent/_header.html.haml (0.6ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 18ms (Views: 13.1ms | ActiveRecord: 2.3ms) +Started GET "/adherent/payments/25/reglements/new" for 127.0.0.1 at 2013-08-30 19:17:09 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"25"} + Organism Load (1.1ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "25"]] + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 42 LIMIT 1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 25 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 25 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 25 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 25 + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (8.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 31ms (Views: 16.5ms | ActiveRecord: 3.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 48) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 48) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 48], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 43 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 43 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:be731a4,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 43], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/43/payments/new" for 127.0.0.1 at 2013-08-30 19:17:09 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"43"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "43"]] + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 43 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (8.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 16ms (Views: 11.6ms | ActiveRecord: 1.1ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 49) LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 49) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 49], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 44 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 44 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:bf207dc,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 44], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/44/payments/new" for 127.0.0.1 at 2013-08-30 19:17:09 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"44"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.9ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "44"]] + Adherent::Adhesion Load (0.9ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 44 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (6.4ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 20ms (Views: 11.5ms | ActiveRecord: 2.2ms) +  (0.0ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 44 +Started POST "/adherent/members/44/payments" for 127.0.0.1 at 2013-08-30 19:17:09 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"150.25", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"44"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "44"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:c004c84,'0.15025E3',18(18)>], ["created_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 44], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:17:09 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 44 LIMIT 1 + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 44 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/44/payments +Completed 302 Found in 9ms (ActiveRecord: 1.8ms) +Started GET "/adherent/members/44/payments" for 127.0.0.1 at 2013-08-30 19:17:09 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"44"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "44"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 44 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 26 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 26 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 26 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 26 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 26 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 44 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.2ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 13ms (Views: 9.6ms | ActiveRecord: 2.1ms) +  (0.5ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 44 +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.2ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:20:57 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:20:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.9ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 50) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 50) LIMIT 1 + SQL (0.6ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:20:57 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 50], ["updated_at", Fri, 30 Aug 2013 17:20:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 45 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 45 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:9cc93c8,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 45], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/45/payments/new" for 127.0.0.1 at 2013-08-30 19:20:58 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"45"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "45"]] + Adherent::Adhesion Load (1.2ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 45 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (82.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml within layouts/adherent/application (89.5ms) + Rendered layouts/adherent/_header.html.haml (0.9ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (3.4ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (1.0ms) +Completed 200 OK in 134ms (Views: 106.9ms | ActiveRecord: 4.0ms) +  (0.7ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (1.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 51) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 51) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 51], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 46 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 46 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a12e814,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 46], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/46/payments/new" for 127.0.0.1 at 2013-08-30 19:20:58 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"46"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "46"]] + Adherent::Adhesion Load (0.8ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 46 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (9.0ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 18ms (Views: 12.9ms | ActiveRecord: 1.3ms) +  (0.5ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 46 +Started POST "/adherent/members/46/payments" for 127.0.0.1 at 2013-08-30 19:20:58 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"150.25", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"46"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "46"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a7280f8,'0.15025E3',18(18)>], ["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 46], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] + Adherent::Member Load (6.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 46 LIMIT 1 + Adherent::Adhesion Load (1.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 46 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.6ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/46/payments +Completed 302 Found in 42ms (ActiveRecord: 10.9ms) +Started GET "/adherent/members/46/payments" for 127.0.0.1 at 2013-08-30 19:20:58 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"46"} + Organism Load (5.1ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (1.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "46"]] + Adherent::Payment Load (3.8ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 46 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 27 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 27 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 27 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 27 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 27 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 46 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (19.7ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.4ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 54ms (Views: 36.0ms | ActiveRecord: 13.2ms) +  (0.3ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 46 +  (1.2ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.1ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 52) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 52) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 52], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.1ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 47 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 47 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a825744,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 47], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.3ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a8356bc,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 47], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] + Adherent::Member Load (0.9ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 47 LIMIT 1 + Adherent::Adhesion Load (0.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 47 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/47/payments" for 127.0.0.1 at 2013-08-30 19:20:58 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"47"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "47"]] + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 47 + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 28 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 28 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 28 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 28 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 28 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 47 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (7.1ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 18ms (Views: 12.5ms | ActiveRecord: 2.9ms) +  (0.2ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 53) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 53) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 53], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 48 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 48 ORDER BY to_date DESC LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a8fd1f8,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 48], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a917e7c,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 48], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 48 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 48 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/48/payments" for 127.0.0.1 at 2013-08-30 19:20:58 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"48"} + Organism Load (0.1ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "48"]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 48 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 29 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 29 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 29 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 29 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 29 + Adherent::Member Load (0.9ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 48 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (7.5ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 17ms (Views: 12.4ms | ActiveRecord: 2.7ms) +Started GET "/adherent/payments/29/reglements/new" for 127.0.0.1 at 2013-08-30 19:20:58 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"29"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "29"]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 48 LIMIT 1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 29 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 29 + Adherent::Reglement Load (0.7ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 29 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 29 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (9.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 77ms (Views: 61.8ms | ActiveRecord: 2.9ms) +  (0.0ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 54) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 54) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 54], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 49 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 49 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:9ce5bcc,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 49], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/49/payments/new" for 127.0.0.1 at 2013-08-30 19:20:58 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"49"} + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "49"]] + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 49 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (7.1ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 16ms (Views: 11.0ms | ActiveRecord: 1.1ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 55) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 55) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 55], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 50 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 50 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a123874,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 50], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:20:58 UTC +00:00]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/50/payments/new" for 127.0.0.1 at 2013-08-30 19:20:58 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"50"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "50"]] + Adherent::Adhesion Load (0.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 50 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (5.3ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 17ms (Views: 9.6ms | ActiveRecord: 1.2ms) +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Organism Load (1.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.6ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:22:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:22:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.7ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 56) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 56) LIMIT 1 + SQL (0.7ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:22:46 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 56], ["updated_at", Fri, 30 Aug 2013 17:22:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.7ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.8ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 51 + Adherent::Adhesion Load (0.7ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 51 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a645d48,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:22:46 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 51], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:22:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/51/payments/new" for 127.0.0.1 at 2013-08-30 19:22:46 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"51"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "51"]] + Adherent::Adhesion Load (1.4ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 51 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (72.6ms) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/new.html.haml within layouts/adherent/application (82.7ms) + Rendered layouts/adherent/_header.html.haml (1.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (2.3ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (1.1ms) +Completed 200 OK in 119ms (Views: 97.6ms | ActiveRecord: 3.6ms) +  (0.6ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:22:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:22:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 57) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 57) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:22:46 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 57], ["updated_at", Fri, 30 Aug 2013 17:22:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 52 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 52 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aad2a50,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:22:46 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 52], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:22:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/52/payments/new" for 127.0.0.1 at 2013-08-30 19:22:46 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"52"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "52"]] + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 52 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (6.9ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 16ms (Views: 11.4ms | ActiveRecord: 1.1ms) +  (0.5ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 52 +Started POST "/adherent/members/52/payments" for 127.0.0.1 at 2013-08-30 19:22:47 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"150.25", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"52"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "52"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b0d3ddc,'0.15025E3',18(18)>], ["created_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 52], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 52 LIMIT 1 + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 52 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/52/payments +Completed 302 Found in 24ms (ActiveRecord: 3.9ms) +Started GET "/adherent/members/52/payments" for 127.0.0.1 at 2013-08-30 19:22:47 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"52"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "52"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 52 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 30 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 30 +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 30 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 30 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 30 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 52 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (11.8ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 25ms (Views: 19.8ms | ActiveRecord: 2.9ms) +  (0.4ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 52 +  (0.9ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 58) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 58) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 58], ["updated_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 53 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 53 ORDER BY to_date DESC LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b1cd698,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 53], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/53/payments/new" for 127.0.0.1 at 2013-08-30 19:22:47 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"53"} + Organism Load (0.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "53"]] + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 53 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (13.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.0ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 25ms (Views: 19.0ms | ActiveRecord: 1.8ms) +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 59) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 59) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 59], ["updated_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 54 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 54 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b286ad0,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 54], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/54/payments/new" for 127.0.0.1 at 2013-08-30 19:22:47 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"54"} + Organism Load (1.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "54"]] + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 54 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (5.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 16ms (Views: 9.1ms | ActiveRecord: 2.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 60) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 60) LIMIT 1 + SQL (1.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 60], ["updated_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 55 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 55 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b34af34,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 55], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b35aaec,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 55], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 55 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 55 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/55/payments" for 127.0.0.1 at 2013-08-30 19:22:47 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"55"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "55"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 55 + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 31 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 31 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 31 + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 31 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 31 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 55 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (7.0ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.0ms) +Completed 200 OK in 15ms (Views: 9.9ms | ActiveRecord: 2.5ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 61) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 61) LIMIT 1 + SQL (69.1ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 61], ["updated_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 56 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 56 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:9bd5e58,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 56], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:9c97a80,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 56], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:22:47 UTC +00:00]] + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 56 LIMIT 1 + Adherent::Adhesion Load (1.9ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 56 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/56/payments" for 127.0.0.1 at 2013-08-30 19:22:47 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"56"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "56"]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 56 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 32 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 32 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 32 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 32 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 32 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 56 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.4ms) + Rendered layouts/adherent/_header.html.haml (0.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 16ms (Views: 12.3ms | ActiveRecord: 2.0ms) +Started GET "/adherent/payments/32/reglements/new" for 127.0.0.1 at 2013-08-30 19:22:47 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"32"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "32"]] + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 56 LIMIT 1 + Adherent::Reglement Load (0.8ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 32 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 32 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 32 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 32 + Adherent::Adhesion Load (0.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (10.0ms) + Rendered layouts/adherent/_header.html.haml (0.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 32ms (Views: 17.4ms | ActiveRecord: 3.0ms) +  (0.4ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN + Organism Load (0.8ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.9ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:02 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 62) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.1ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 62) LIMIT 1 + SQL (0.6ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:02 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 62], ["updated_at", Fri, 30 Aug 2013 17:23:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 57 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 57 ORDER BY to_date DESC LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (2.3ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:af6e924,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:02 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 57], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b20c334,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:23:02 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 57], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:02 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 57 LIMIT 1 + Adherent::Adhesion Load (1.4ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 57 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/57/payments" for 127.0.0.1 at 2013-08-30 19:23:02 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"57"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "57"]] + Adherent::Payment Load (0.6ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 57 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 33 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 33 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 33 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 33 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 33 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 57 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (11.4ms) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/index.html.haml within layouts/adherent/application (21.1ms) + Rendered layouts/adherent/_header.html.haml (0.9ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (2.0ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (1.0ms) +Completed 200 OK in 40ms (Views: 34.0ms | ActiveRecord: 3.3ms) +  (0.6ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 63) LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 63) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 63], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 58 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 58 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b50a57c,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 58], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b51bd90,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 58], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 58 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 58 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/58/payments" for 127.0.0.1 at 2013-08-30 19:23:03 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"58"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "58"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 58 + Adherent::Reglement Load (1.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 34 + Adherent::Reglement Load (0.0ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 34 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 34 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 34 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 34 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 58 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (7.8ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 19ms (Views: 12.6ms | ActiveRecord: 2.9ms) +Started GET "/adherent/payments/34/reglements/new" for 127.0.0.1 at 2013-08-30 19:23:03 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"34"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "34"]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 58 LIMIT 1 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 34 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 34 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 34 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 34 + Adherent::Adhesion Load (0.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (72.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 97ms (Views: 79.9ms | ActiveRecord: 2.5ms) +  (0.4ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 64) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 64) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 64], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 59 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 59 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a92e5c8,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 59], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/59/payments/new" for 127.0.0.1 at 2013-08-30 19:23:03 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"59"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "59"]] + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 59 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (9.5ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 26ms (Views: 18.9ms | ActiveRecord: 1.3ms) +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 65) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 65) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 65], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.8ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 60 + Adherent::Adhesion Load (0.8ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 60 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:af6c8e0,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 60], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/60/payments/new" for 127.0.0.1 at 2013-08-30 19:23:03 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"60"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "60"]] + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 60 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (5.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 14ms (Views: 8.8ms | ActiveRecord: 1.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 66) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 66) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 66], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 61 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 61 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b292574,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 61], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/61/payments/new" for 127.0.0.1 at 2013-08-30 19:23:03 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"61"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "61"]] + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 61 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (4.7ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 14ms (Views: 7.9ms | ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 61 +Started POST "/adherent/members/61/payments" for 127.0.0.1 at 2013-08-30 19:23:03 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"150.25", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"61"} + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "61"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b3bdfac,'0.15025E3',18(18)>], ["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 61], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 61 LIMIT 1 + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 61 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/61/payments +Completed 302 Found in 11ms (ActiveRecord: 1.8ms) +Started GET "/adherent/members/61/payments" for 127.0.0.1 at 2013-08-30 19:23:03 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"61"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "61"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 61 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 35 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 35 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 35 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 35 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 35 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 61 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (7.4ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 2.1ms) +  (0.3ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 61 +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 67) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 67) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 67], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.1ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 62 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 62 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:b1a6688,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 62], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/62/payments/new" for 127.0.0.1 at 2013-08-30 19:23:03 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"62"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "62"]] + Adherent::Adhesion Load (0.8ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 62 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (6.4ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 17ms (Views: 10.8ms | ActiveRecord: 1.3ms) +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (6.5ms) BEGIN +Processing by Adherent::CoordsController#new as HTML + Parameters: {"member_id"=>"1001"} + Organism Load (6.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (4.6ms) SAVEPOINT active_record_1 + SQL (8.0ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/new.html.erb within layouts/adherent/application (0.1ms) +Completed 200 OK in 59ms (Views: 14.7ms | ActiveRecord: 30.0ms) +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::CoordsController#update as HTML + Parameters: {"coord"=>{"city"=>"Dallas"}, "member_id"=>"1003"} + Organism Load (4.1ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.1ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 14ms (Views: 3.6ms | ActiveRecord: 7.3ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::CoordsController#update as HTML + Parameters: {"coord"=>{"city"=>"Dallas"}, "member_id"=>"1005"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 1.0ms) +  (3.7ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::CoordsController#update as HTML + Parameters: {"coord"=>{"city"=>"Dallas"}, "member_id"=>"1007"} + Organism Load (7.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/1007/coord +Completed 302 Found in 12ms (ActiveRecord: 7.8ms) +  (3.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::CoordsController#update as HTML + Parameters: {"coord"=>{"city"=>"Dallas"}, "member_id"=>"1009"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (2.7ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/1009/coord +Completed 302 Found in 9ms (ActiveRecord: 3.5ms) +  (3.3ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::CoordsController#edit as HTML + Parameters: {"member_id"=>"1011"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 15ms (Views: 4.1ms | ActiveRecord: 1.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::CoordsController#edit as HTML + Parameters: {"member_id"=>"1013"} + Organism Load (4.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (3.2ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00]] +  (1.9ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 9.0ms) +  (4.5ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::CoordsController#show as HTML + Parameters: {"member_id"=>"1015"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.2ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 11ms (Views: 1.2ms | ActiveRecord: 4.7ms) +  (5.2ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::CoordsController#show as HTML + Parameters: {"member_id"=>"1017"} + Organism Load (1.1ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (7.1ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 13ms (Views: 0.9ms | ActiveRecord: 8.5ms) +  (0.1ms) ROLLBACK +  (0.5ms) BEGIN +Processing by Adherent::CoordsController#create as HTML + Parameters: {"coord"=>{"city"=>"Bruxelles", "zip"=>"1000"}, "member_id"=>"1019"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 21ms (Views: 1.3ms | ActiveRecord: 1.6ms) +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::CoordsController#create as HTML + Parameters: {"coord"=>{"city"=>"Bruxelles", "zip"=>"1000"}, "member_id"=>"1021"} + Organism Load (4.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (72.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/1021/adhesions/new +Completed 302 Found in 81ms (ActiveRecord: 77.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::AdhesionsController#new as HTML + Parameters: {"member_id"=>"1023"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.7ms) SAVEPOINT active_record_1 + SQL (3.6ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 13ms (Views: 2.0ms | ActiveRecord: 4.8ms) +  (0.2ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::AdhesionsController#update as HTML + Parameters: {"adhesion"=>{"amount"=>"125"}, "member_id"=>"1025", "id"=>"1"} + Organism Load (4.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 18ms (Views: 5.7ms | ActiveRecord: 8.9ms) +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::AdhesionsController#update as HTML + Parameters: {"adhesion"=>{"amount"=>"125"}, "member_id"=>"1027", "id"=>"1"} + Organism Load (2.8ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (3.1ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00]] +  (1.2ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 7.4ms) +  (5.0ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::AdhesionsController#update as HTML + Parameters: {"adhesion"=>{"amount"=>"125"}, "member_id"=>"1029", "id"=>"1"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/1029/adhesions +Completed 302 Found in 15ms (ActiveRecord: 1.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::AdhesionsController#update as HTML + Parameters: {"adhesion"=>{"amount"=>"125"}, "member_id"=>"1031", "id"=>"1"} + Organism Load (3.8ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/1031/adhesions +Completed 302 Found in 10ms (ActiveRecord: 4.3ms) +  (1.8ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::AdhesionsController#edit as HTML + Parameters: {"member_id"=>"1033", "id"=>"1"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 13ms (Views: 1.0ms | ActiveRecord: 0.8ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::AdhesionsController#edit as HTML + Parameters: {"member_id"=>"1035", "id"=>"1"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (3.7ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 17ms (Views: 0.9ms | ActiveRecord: 4.5ms) +  (6.4ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::AdhesionsController#index as HTML + Parameters: {"member_id"=>"1037"} + Organism Load (4.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00]] +  (1.6ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/1037/adhesions/new +Completed 302 Found in 13ms (ActiveRecord: 6.6ms) +  (6.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::AdhesionsController#index as HTML + Parameters: {"member_id"=>"1038"} + Organism Load (3.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 14ms (Views: 1.6ms | ActiveRecord: 8.0ms) +  (5.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::AdhesionsController#index as HTML + Parameters: {"member_id"=>"1039"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.8ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 9ms (Views: 2.3ms | ActiveRecord: 4.3ms) +  (4.7ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::AdhesionsController#create as HTML + Parameters: {"adhesion"=>{"amount"=>"57", "mode"=>"CB", "date"=>"30/08/2013"}, "member_id"=>"1040"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/1040/adhesions +Completed 302 Found in 5ms (ActiveRecord: 1.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::AdhesionsController#create as HTML + Parameters: {"adhesion"=>{"amount"=>"57", "mode"=>"CB", "date"=>"30/08/2013"}, "member_id"=>"1042"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 6ms (Views: 1.6ms | ActiveRecord: 1.1ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::AdhesionsController#create as HTML + Parameters: {"adhesion"=>{"amount"=>"57", "mode"=>"CB", "date"=>"30/08/2013"}, "member_id"=>"1044"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/1044/adhesions +Completed 302 Found in 7ms (ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 92) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 92) LIMIT 1 + SQL (0.9ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 92], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  +Started GET "/adherent/members/63/coord/new" for 127.0.0.1 at 2013-08-30 19:23:46 +0200 +Processing by Adherent::CoordsController#new as HTML + Parameters: {"member_id"=>"63"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "63"]] + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 63 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/_form.html.erb (28.7ms) + Rendered layouts/adherent/_header.html.haml (1.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (2.0ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (1.0ms) +Completed 200 OK in 156ms (Views: 43.9ms | ActiveRecord: 3.0ms) +Started POST "/adherent/members/63/coord" for 127.0.0.1 at 2013-08-30 19:23:46 +0200 +Processing by Adherent::CoordsController#create as HTML + Parameters: {"utf8"=>"✓", "coord"=>{"mail"=>"joe.dalton@penitencier.us", "tel"=>"", "gsm"=>"", "office"=>"", "address"=>"", "zip"=>"", "city"=>"Oklahoma city"}, "commit"=>"Enregistrer", "member_id"=>"63"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "63"]] + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 63 LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (53.7ms) INSERT INTO "adherent_coords" ("address", "city", "created_at", "gsm", "mail", "member_id", "office", "tel", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["address", ""], ["city", "Oklahoma city"], ["created_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["gsm", ""], ["mail", "joe.dalton@penitencier.us"], ["member_id", 63], ["office", ""], ["tel", ""], ["updated_at", Fri, 30 Aug 2013 17:23:46 UTC +00:00], ["zip", ""]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/63/adhesions/new +Completed 302 Found in 67ms (ActiveRecord: 54.7ms) +Started GET "/adherent/members/63/adhesions/new" for 127.0.0.1 at 2013-08-30 19:23:46 +0200 +Processing by Adherent::AdhesionsController#new as HTML + Parameters: {"member_id"=>"63"} + Organism Load (0.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (1.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "63"]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 63 + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 63 ORDER BY to_date DESC LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (9.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 101ms (Views: 15.3ms | ActiveRecord: 4.6ms) + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 63 LIMIT 1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 93) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 93) LIMIT 1 + SQL (0.2ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 93], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  +Started GET "/adherent/members/64/coord/new" for 127.0.0.1 at 2013-08-30 19:23:47 +0200 +Processing by Adherent::CoordsController#new as HTML + Parameters: {"member_id"=>"64"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "64"]] + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 64 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/_form.html.erb (7.0ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (2.1ms) +Completed 200 OK in 16ms (Views: 12.2ms | ActiveRecord: 0.8ms) +Started POST "/adherent/members/64/coord" for 127.0.0.1 at 2013-08-30 19:23:47 +0200 +Processing by Adherent::CoordsController#create as HTML + Parameters: {"utf8"=>"✓", "coord"=>{"mail"=>"joe.dalton@penitencier.us", "tel"=>"", "gsm"=>"", "office"=>"", "address"=>"", "zip"=>"", "city"=>""}, "commit"=>"Enregistrer", "member_id"=>"64"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "64"]] + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 64 LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_coords" ("address", "city", "created_at", "gsm", "mail", "member_id", "office", "tel", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["address", ""], ["city", ""], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["gsm", ""], ["mail", "joe.dalton@penitencier.us"], ["member_id", 64], ["office", ""], ["tel", ""], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["zip", ""]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/64/adhesions/new +Completed 302 Found in 7ms (ActiveRecord: 1.4ms) +Started GET "/adherent/members/64/adhesions/new" for 127.0.0.1 at 2013-08-30 19:23:47 +0200 +Processing by Adherent::AdhesionsController#new as HTML + Parameters: {"member_id"=>"64"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "64"]] + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 64 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 64 ORDER BY to_date DESC LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (4.7ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 0.9ms) +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 94) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 94) LIMIT 1 + SQL (1.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 94], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" +Started GET "/adherent/members/65/coord/new" for 127.0.0.1 at 2013-08-30 19:23:47 +0200 +Processing by Adherent::CoordsController#new as HTML + Parameters: {"member_id"=>"65"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "65"]] + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 65 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/_form.html.erb (9.1ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 17ms (Views: 12.8ms | ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "adherent_coords" +Started POST "/adherent/members/65/coord" for 127.0.0.1 at 2013-08-30 19:23:47 +0200 +Processing by Adherent::CoordsController#create as HTML + Parameters: {"utf8"=>"✓", "coord"=>{"mail"=>"joe.dalton@penitencier.us", "tel"=>"", "gsm"=>"", "office"=>"", "address"=>"", "zip"=>"", "city"=>"Oklahoma city"}, "commit"=>"Enregistrer", "member_id"=>"65"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "65"]] + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 65 LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.3ms) INSERT INTO "adherent_coords" ("address", "city", "created_at", "gsm", "mail", "member_id", "office", "tel", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["address", ""], ["city", "Oklahoma city"], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["gsm", ""], ["mail", "joe.dalton@penitencier.us"], ["member_id", 65], ["office", ""], ["tel", ""], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["zip", ""]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/65/adhesions/new +Completed 302 Found in 7ms (ActiveRecord: 2.2ms) +Started GET "/adherent/members/65/adhesions/new" for 127.0.0.1 at 2013-08-30 19:23:47 +0200 +Processing by Adherent::AdhesionsController#new as HTML + Parameters: {"member_id"=>"65"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "65"]] + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 65 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 65 ORDER BY to_date DESC LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (4.2ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 15ms (Views: 9.3ms | ActiveRecord: 1.4ms) +  (0.3ms) SELECT COUNT(*) FROM "adherent_coords"  +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 95) LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 95) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 95], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members"  +Started GET "/adherent/members/66/coord/new" for 127.0.0.1 at 2013-08-30 19:23:47 +0200 +Processing by Adherent::CoordsController#new as HTML + Parameters: {"member_id"=>"66"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "66"]] + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 66 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/_form.html.erb (7.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (1.5ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 16ms (Views: 11.7ms | ActiveRecord: 0.7ms) +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::MembersController#show as HTML + Parameters: {"id"=>"998"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 6ms (Views: 2.2ms | ActiveRecord: 0.8ms) +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::MembersController#show as HTML + Parameters: {"id"=>"999"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 1.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::MembersController#create as HTML + Parameters: {"member"=>{"name"=>"Dupont", "forname"=>"Jules", "number"=>"A001"}} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A001' AND "adherent_members"."organism_id" = 98) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["forname", "Jules"], ["name", "Dupont"], ["number", "A001"], ["organism_id", 98], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/67/coord/new +Completed 302 Found in 11ms (ActiveRecord: 1.5ms) +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::MembersController#create as HTML + Parameters: {"member"=>{"name"=>"Dupont", "forname"=>"Jules", "number"=>"A001", "birthdate"=>"06/06/1955"}} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.1ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A001' AND "adherent_members"."organism_id" = 99) LIMIT 1 + SQL (0.8ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", Mon, 06 Jun 1955], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["forname", "Jules"], ["name", "Dupont"], ["number", "A001"], ["organism_id", 99], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/68/coord/new +Completed 302 Found in 10ms (ActiveRecord: 1.9ms) +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::MembersController#create as HTML + Parameters: {"member"=>{"name"=>"Dupont", "forname"=>"Jules", "number"=>"A001"}} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 7ms (Views: 1.4ms | ActiveRecord: 0.9ms) +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::MembersController#create as HTML + Parameters: {"member"=>{"name"=>"Dupont", "forname"=>"Jules", "number"=>"A001"}} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'A001' AND "adherent_members"."organism_id" = 101) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["forname", "Jules"], ["name", "Dupont"], ["number", "A001"], ["organism_id", 101], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/69/coord/new +Completed 302 Found in 9ms (ActiveRecord: 2.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::MembersController#index as HTML + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 0.8ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::MembersController#index as HTML + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = 103 +Completed 200 OK in 7ms (Views: 0.9ms | ActiveRecord: 1.1ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::MembersController#edit as HTML + Parameters: {"id"=>"998"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 8ms (Views: 1.5ms | ActiveRecord: 1.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::MembersController#edit as HTML + Parameters: {"id"=>"999"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 6ms (Views: 0.9ms | ActiveRecord: 1.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::MembersController#new as HTML + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 8ms (Views: 3.2ms | ActiveRecord: 1.1ms) +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::MembersController#destroy as HTML + Parameters: {"id"=>"1050"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +Processing by Adherent::MembersController#destroy as HTML + Parameters: {"id"=>"1051"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (6.7ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members +Completed 302 Found in 11ms (ActiveRecord: 7.2ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::MembersController#update as HTML + Parameters: {"member"=>{"name"=>"Dalton"}, "id"=>"1052"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 1.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::MembersController#update as HTML + Parameters: {"member"=>{"name"=>"Dalton"}, "id"=>"1053"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/1053 +Completed 302 Found in 5ms (ActiveRecord: 0.8ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::MembersController#update as HTML + Parameters: {"member"=>{"name"=>"Dalton"}, "id"=>"1054"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/1054 +Completed 302 Found in 7ms (ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::MembersController#update as HTML + Parameters: {"member"=>{"name"=>"Dalton"}, "id"=>"1055"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (1.6ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/1055 +Completed 302 Found in 5ms (ActiveRecord: 2.0ms) +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = '001' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["forname", "Jessie"], ["name", "James"], ["number", "001"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (11.8ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a41e100,'0.27E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 70], ["to_date", Mon, 30 Sep 2013], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 70 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 70 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a438410,'0.27E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["from_date", Tue, 01 Oct 2013], ["member_id", 70], ["to_date", Tue, 30 Sep 2014], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a613640,'0.25E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 70], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 70 LIMIT 1 + Adherent::Adhesion Load (1.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 70 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 66 + SQL (20.9ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 66], ["amount", #<BigDecimal:a61056c,'0.25E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["payment_id", 36], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "adherent_reglements"  +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = '001' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["forname", "Jessie"], ["name", "James"], ["number", "001"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a7cbe38,'0.27E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 71], ["to_date", Mon, 30 Sep 2013], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 71 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 71 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a817158,'0.27E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["from_date", Tue, 01 Oct 2013], ["member_id", 71], ["to_date", Tue, 30 Sep 2014], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a79e0b4,'0.6E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 71], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 71 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 71 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 68 + SQL (0.1ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 68], ["amount", #<BigDecimal:a7d8110,'0.27E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["payment_id", 37], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 69 + SQL (0.3ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 69], ["amount", #<BigDecimal:a83c0c0,'0.27E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["payment_id", 37], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 37 +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 37 +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = '001' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["forname", "Jessie"], ["name", "James"], ["number", "001"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a85f7dc,'0.27E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 72], ["to_date", Mon, 30 Sep 2013], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 72 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 72 ORDER BY to_date DESC LIMIT 1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a866ff0,'0.27E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["from_date", Tue, 01 Oct 2013], ["member_id", 72], ["to_date", Tue, 30 Sep 2014], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a86c66c,'0.54E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 72], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 72 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 72 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 70 + SQL (0.4ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 70], ["amount", #<BigDecimal:a87f410,'0.27E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["payment_id", 38], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 71 + SQL (0.3ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 71], ["amount", #<BigDecimal:a8828a4,'0.27E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["payment_id", 38], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "adherent_reglements" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" IS NULL +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (1.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 113) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 113) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 113], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 73 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 73 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a936700,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 73], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a95ef98,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 73], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 73 LIMIT 1 + Adherent::Adhesion Load (0.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 73 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/73/payments" for 127.0.0.1 at 2013-08-30 19:23:47 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"73"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "73"]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 73 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 39 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 39 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 39 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 39 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 39 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 73 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (12.2ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 28ms (Views: 23.7ms | ActiveRecord: 2.1ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 114) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 114) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 114], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 74 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 74 ORDER BY to_date DESC LIMIT 1 +  (2.0ms) SAVEPOINT active_record_1 + SQL (1.7ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aa80660,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 74], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aaa15f4,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 74], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:47 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 74 LIMIT 1 + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 74 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/74/payments" for 127.0.0.1 at 2013-08-30 19:23:47 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"74"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "74"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 74 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 40 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 40 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 40 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 40 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 40 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 74 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (6.2ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 16ms (Views: 10.8ms | ActiveRecord: 1.8ms) +Started GET "/adherent/payments/40/reglements/new" for 127.0.0.1 at 2013-08-30 19:23:47 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"40"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "40"]] + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 74 LIMIT 1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 40 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 40 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 40 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 40 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (13.8ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.2ms) +Completed 200 OK in 34ms (Views: 26.5ms | ActiveRecord: 2.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 115) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 115) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 115], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 75 + Adherent::Adhesion Load (0.0ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 75 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:92bf760,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 75], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/75/payments/new" for 127.0.0.1 at 2013-08-30 19:23:48 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"75"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "75"]] + Adherent::Adhesion Load (1.3ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 75 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (8.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.0ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 23ms (Views: 16.6ms | ActiveRecord: 1.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 116) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 116) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 116], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 76 + Adherent::Adhesion Load (0.9ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 76 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:9f19484,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 76], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/76/payments/new" for 127.0.0.1 at 2013-08-30 19:23:48 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"76"} + Organism Load (4.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "76"]] + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 76 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (10.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 31ms (Views: 20.9ms | ActiveRecord: 5.8ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.0ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (1.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 117) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (6.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 117) LIMIT 1 + SQL (0.8ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 117], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 77 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 77 ORDER BY to_date DESC LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (2.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a5a1838,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 77], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (1.8ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/77/payments/new" for 127.0.0.1 at 2013-08-30 19:23:48 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"77"} + Organism Load (5.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "77"]] + Adherent::Adhesion Load (0.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 77 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (12.8ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 27ms (Views: 16.3ms | ActiveRecord: 6.4ms) +  (0.2ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 77 +Started POST "/adherent/members/77/payments" for 127.0.0.1 at 2013-08-30 19:23:48 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"150.25", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"77"} + Organism Load (3.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (5.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "77"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a7f560c,'0.15025E3',18(18)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 77], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] + Adherent::Member Load (1.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 77 LIMIT 1 + Adherent::Adhesion Load (0.3ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 77 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (3.9ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/77/payments +Completed 302 Found in 24ms (ActiveRecord: 14.2ms) +Started GET "/adherent/members/77/payments" for 127.0.0.1 at 2013-08-30 19:23:48 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"77"} + Organism Load (4.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "77"]] + Adherent::Payment Load (4.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 77 + Adherent::Reglement Load (6.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 41 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 41 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 41 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 41 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 41 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 77 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (15.2ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.3ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 31ms (Views: 13.6ms | ActiveRecord: 16.2ms) +  (5.0ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 77 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (1.5ms) SAVEPOINT active_record_1 + SQL (3.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 118) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (1.7ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 118) LIMIT 1 + SQL (5.0ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 118], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 78 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 78 ORDER BY to_date DESC LIMIT 1 +  (1.7ms) SAVEPOINT active_record_1 + SQL (2.8ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a8700a0,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 78], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (4.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/78/payments/new" for 127.0.0.1 at 2013-08-30 19:23:48 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"78"} + Organism Load (6.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "78"]] + Adherent::Adhesion Load (0.4ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 78 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (14.2ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 29ms (Views: 17.6ms | ActiveRecord: 7.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) ROLLBACK +  (3.8ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (4.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) ROLLBACK +  (0.4ms) BEGIN +  (4.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (6.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.0ms) ROLLBACK +  (0.0ms) BEGIN +  (5.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (5.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (4.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = '001' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["forname", "Jessie"], ["name", "James"], ["number", "001"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (1.9ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = '002' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["forname", "Jessie"], ["name", "James"], ["number", "002"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a983dfc,'0.1E3',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["from_date", Thu, 01 Aug 2013], ["member_id", 79], ["to_date", Sat, 31 Aug 2013], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a9889b0,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["from_date", Thu, 01 Aug 2013], ["member_id", 80], ["to_date", Sat, 31 Aug 2013], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a99d84c,'0.4E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 80], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] + Adherent::Member Load (3.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 80 LIMIT 1 + Adherent::Adhesion Load (0.9ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 80 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 79 + SQL (4.5ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 79], ["amount", #<BigDecimal:a9a74a0,'0.4E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["payment_id", 42], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.3ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a9d66d8,'0.1E3',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 79], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 79 LIMIT 1 + Adherent::Adhesion Load (4.1ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 79 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 78 + SQL (6.0ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 78], ["amount", #<BigDecimal:a9dded8,'0.1E3',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["payment_id", 43], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Adherent::Member Exists (3.9ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = '001' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["forname", "Jessie"], ["name", "James"], ["number", "001"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = '002' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (7.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["forname", "Jessie"], ["name", "James"], ["number", "002"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aa439b8,'0.1E3',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["from_date", Thu, 01 Aug 2013], ["member_id", 81], ["to_date", Sat, 31 Aug 2013], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aa56b6c,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["from_date", Thu, 01 Aug 2013], ["member_id", 82], ["to_date", Sat, 31 Aug 2013], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aa6beb8,'0.4E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 82], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 82 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 82 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 81 + SQL (7.6ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 81], ["amount", #<BigDecimal:aa69938,'0.4E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["payment_id", 44], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aa95e98,'0.1E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 82], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 82 LIMIT 1 + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 82 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 81 + SQL (0.5ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 81], ["amount", #<BigDecimal:aaa3868,'0.1E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["payment_id", 45], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aadb524,'0.1E3',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 81], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 81 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 81 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 80 + SQL (0.5ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 80], ["amount", #<BigDecimal:aad8ef0,'0.1E3',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["payment_id", 46], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.3ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (2.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = '001' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["forname", "Jessie"], ["name", "James"], ["number", "001"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (2.9ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = '002' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (1.0ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["forname", "Jessie"], ["name", "James"], ["number", "002"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (6.4ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ab3a290,'0.1E3',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["from_date", Thu, 01 Aug 2013], ["member_id", 83], ["to_date", Sat, 31 Aug 2013], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ab49b8c,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["from_date", Thu, 01 Aug 2013], ["member_id", 84], ["to_date", Sat, 31 Aug 2013], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (6.0ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ab62600,'0.4E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 84], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] + Adherent::Member Load (3.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 84 LIMIT 1 + Adherent::Adhesion Load (0.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 84 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.8ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 83 + SQL (32.5ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 83], ["amount", #<BigDecimal:ab73b1c,'0.4E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["payment_id", 47], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Adherent::Adhesion Load (0.4ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) LIMIT 1 + Adherent::Adhesion Load (0.4ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY "adherent_adhesions"."id" DESC LIMIT 1 +  (0.9ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (3.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (3.8ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:abde764,'0.1927E2',18(45)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 1], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (1.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 84 +  (5.4ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 84], ["amount", #<BigDecimal:abf29e4,'0.1E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["payment_id", 1], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 84 +  (0.1ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 84 +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (5.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:acb3964,'0.1927E2',18(45)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 1], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 85 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.9ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 85], ["amount", #<BigDecimal:ad18314,'0.1E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["payment_id", 1], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (5.8ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ad7a12c,'0.1927E2',18(45)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 1], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 86 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 86], ["amount", #<BigDecimal:ad7ce2c,'0.1927E2',18(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["payment_id", 1], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (3.9ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 86 +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.0ms) COMMIT +  (0.2ms) BEGIN + Organism Load (6.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 119) LIMIT 1 +  (5.2ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 119) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 119], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 119) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (7.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 119) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 119], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 119) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 119) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 119], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 85 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 85 ORDER BY to_date DESC LIMIT 1 +  (7.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:adb7ef0,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 85], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/85/payments/new" for 127.0.0.1 at 2013-08-30 19:23:48 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"85"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (1.8ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "85"]] + Adherent::Adhesion Load (4.8ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 85 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 87 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (14.3ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (4.3ms) +Completed 200 OK in 35ms (Views: 22.6ms | ActiveRecord: 7.3ms) +Started POST "/adherent/members/85/payments" for 127.0.0.1 at 2013-08-30 19:23:48 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"33", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"85"} + Organism Load (4.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "85"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (5.7ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ae3a10c,'0.33E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 85], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 85 LIMIT 1 + Adherent::Adhesion Load (3.3ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 85 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.5ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 87 + SQL (5.1ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 87], ["amount", #<BigDecimal:ae38460,'0.33E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["payment_id", 48], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/85/payments +Completed 302 Found in 31ms (ActiveRecord: 19.7ms) +Started GET "/adherent/members/85/payments" for 127.0.0.1 at 2013-08-30 19:23:48 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"85"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "85"]] + Adherent::Payment Load (6.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 85 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 48 + Adherent::Adhesion Load (8.9ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 87 LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 85 LIMIT 1 + Adherent::Reglement Load (8.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 48 +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 48 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 48 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 48 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 85 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (34.5ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 50ms (Views: 23.0ms | ActiveRecord: 25.1ms) + Adherent::Adhesion Load (6.1ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 85 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 87 +  (0.1ms) ROLLBACK +  (4.4ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (1.9ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 120) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (6.7ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 120) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 120], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 120) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 120) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 120], ["updated_at", Fri, 30 Aug 2013 17:23:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 120) LIMIT 1 +  (2.5ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 120) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 120], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (2.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 88 + Adherent::Adhesion Load (2.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 88 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.0ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:afa9254,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 88], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/88/payments/new" for 127.0.0.1 at 2013-08-30 19:23:49 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"88"} + Organism Load (14.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (5.7ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "88"]] + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 88 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 88 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (11.2ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 46ms (Views: 18.8ms | ActiveRecord: 20.6ms) +Started POST "/adherent/members/88/payments" for 127.0.0.1 at 2013-08-30 19:23:49 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"33", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"88"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "88"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (6.9ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:9c5e370,'0.33E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 88], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 88 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 88 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 88 + SQL (3.2ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 88], ["amount", #<BigDecimal:9d363b0,'0.33E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["payment_id", 49], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/88/payments +Completed 302 Found in 24ms (ActiveRecord: 12.3ms) +Started GET "/adherent/members/88/payments" for 127.0.0.1 at 2013-08-30 19:23:49 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"88"} + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (4.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "88"]] + Adherent::Payment Load (3.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 88 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 49 + Adherent::Adhesion Load (3.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 88 LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 88 LIMIT 1 + Adherent::Reglement Load (5.1ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 49 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 49 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 49 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 49 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 88 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (17.5ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 41ms (Views: 16.6ms | ActiveRecord: 17.3ms) +  (0.2ms) SHOW max_identifier_length +  (0.7ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 88 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (2.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 121) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 121) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 121], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 121) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 121) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 121], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (4.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 121) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (2.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 121) LIMIT 1 + SQL (0.8ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 121], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (5.0ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 91 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 91 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a56c200,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 91], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (3.7ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/91/payments/new" for 127.0.0.1 at 2013-08-30 19:23:49 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"91"} + Organism Load (4.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "91"]] + Adherent::Adhesion Load (6.1ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 91 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 89 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (15.9ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 38ms (Views: 19.5ms | ActiveRecord: 11.4ms) +Started POST "/adherent/members/91/payments" for 127.0.0.1 at 2013-08-30 19:23:49 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"80", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"91"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (2.7ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "91"]] +  (0.2ms) SAVEPOINT active_record_1 + SQL (3.5ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a75de10,'0.8E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 91], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 91 LIMIT 1 + Adherent::Adhesion Load (4.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 91 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (3.1ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 89 + SQL (0.5ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 89], ["amount", #<BigDecimal:a8008f4,'0.5E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["payment_id", 50], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (4.9ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/91/payments +Completed 302 Found in 34ms (ActiveRecord: 20.3ms) +Started GET "/adherent/members/91/payments" for 127.0.0.1 at 2013-08-30 19:23:49 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"91"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "91"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 91 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 50 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 89 LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 91 LIMIT 1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 50 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 50 + Adherent::Reglement Load (1.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 50 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 50 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 91 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (10.2ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.0ms) +Completed 200 OK in 33ms (Views: 22.1ms | ActiveRecord: 3.4ms) + Adherent::Payment Load (6.9ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 91 ORDER BY "adherent_payments"."id" DESC LIMIT 1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 92 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 92 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.3ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a866bf4,'0.49E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 92], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (1.1ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 93 + Adherent::Adhesion Load (4.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 93 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a873368,'0.27E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 93], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/payments/50/reglements/new" for 127.0.0.1 at 2013-08-30 19:23:49 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"50"} + Organism Load (9.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "50"]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 91 LIMIT 1 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 50 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 50 + Adherent::Reglement Load (2.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 50 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 50 + Adherent::Adhesion Load (5.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 92 LIMIT 1 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 90 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 93 LIMIT 1 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 91 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (22.1ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 49ms (Views: 25.5ms | ActiveRecord: 19.6ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (3.1ms) BEGIN + Organism Load (0.1ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (4.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 122) LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 122) LIMIT 1 + SQL (6.0ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 122], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 122) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 122) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 122], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 122) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 122) LIMIT 1 + SQL (4.1ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 122], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 94 + Adherent::Adhesion Load (2.9ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 94 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a968cc8,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 94], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/94/payments/new" for 127.0.0.1 at 2013-08-30 19:23:49 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"94"} + Organism Load (2.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (2.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "94"]] + Adherent::Adhesion Load (3.8ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 94 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 92 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (14.1ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 33ms (Views: 17.5ms | ActiveRecord: 9.6ms) +Started POST "/adherent/members/94/payments" for 127.0.0.1 at 2013-08-30 19:23:49 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"80", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"94"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "94"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aa2fb0c,'0.8E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 94], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 94 LIMIT 1 + Adherent::Adhesion Load (1.1ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 94 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (4.7ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 92 + SQL (3.1ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 92], ["amount", #<BigDecimal:aa42dec,'0.5E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["payment_id", 51], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/94/payments +Completed 302 Found in 20ms (ActiveRecord: 10.3ms) +Started GET "/adherent/members/94/payments" for 127.0.0.1 at 2013-08-30 19:23:49 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"94"} + Organism Load (3.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "94"]] + Adherent::Payment Load (4.6ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 94 + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 51 + Adherent::Adhesion Load (3.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 92 LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 94 LIMIT 1 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 51 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 51 + Adherent::Reglement Load (3.8ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 51 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 51 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 94 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (17.7ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 41ms (Views: 19.6ms | ActiveRecord: 17.0ms) + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 94 ORDER BY "adherent_payments"."id" DESC LIMIT 1 + Adherent::Adhesion Load (4.9ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 95 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 95 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ab03f24,'0.49E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 95], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 96 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 96 ORDER BY to_date DESC LIMIT 1 +  (4.5ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ab27ec4,'0.27E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 96], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/payments/51/reglements/new" for 127.0.0.1 at 2013-08-30 19:23:49 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"51"} + Organism Load (3.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "51"]] + Adherent::Member Load (5.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 94 LIMIT 1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 51 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 51 + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 51 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 51 + Adherent::Adhesion Load (6.4ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Adherent::Member Load (1.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 96 LIMIT 1 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 94 + Adherent::Member Load (1.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 95 LIMIT 1 +  (4.6ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 93 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (22.2ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 42ms (Views: 13.3ms | ActiveRecord: 23.8ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.5ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (2.3ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.7ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 123) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 123) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 123], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (1.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 123) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (1.1ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 123) LIMIT 1 + SQL (2.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 123], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (1.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 123) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 123) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 123], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.0ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (1.9ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 97 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 97 ORDER BY to_date DESC LIMIT 1 +  (1.8ms) SAVEPOINT active_record_1 + SQL (2.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ad870fc,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 97], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/97/payments/new" for 127.0.0.1 at 2013-08-30 19:23:49 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"97"} + Organism Load (3.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "97"]] + Adherent::Adhesion Load (4.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 97 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 95 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (13.1ms) + Rendered layouts/adherent/_header.html.haml (4.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 34ms (Views: 21.1ms | ActiveRecord: 8.0ms) +Started POST "/adherent/members/97/payments" for 127.0.0.1 at 2013-08-30 19:23:49 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"80", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"97"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "97"]] +  (2.4ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:adc4f9c,'0.8E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 97], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 97 LIMIT 1 + Adherent::Adhesion Load (3.2ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 97 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (4.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 95 + SQL (0.4ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 95], ["amount", #<BigDecimal:add3150,'0.5E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00], ["payment_id", 52], ["updated_at", Fri, 30 Aug 2013 17:23:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/97/payments +Completed 302 Found in 23ms (ActiveRecord: 11.5ms) +Started GET "/adherent/members/97/payments" for 127.0.0.1 at 2013-08-30 19:23:49 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"97"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (2.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "97"]] + Adherent::Payment Load (4.2ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 97 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 52 + Adherent::Adhesion Load (3.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 95 LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 97 LIMIT 1 + Adherent::Reglement Load (2.7ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 52 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 52 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 52 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 52 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 97 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (15.7ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 33ms (Views: 12.9ms | ActiveRecord: 14.0ms) + Adherent::Payment Load (8.5ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 97 ORDER BY "adherent_payments"."id" DESC LIMIT 1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 98 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 98 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.1ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:8f507f0,'0.49E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 98], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 99 + Adherent::Adhesion Load (3.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 99 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (8.3ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:91bd984,'0.27E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 99], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/payments/52/reglements/new" for 127.0.0.1 at 2013-08-30 19:23:50 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"52"} + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "52"]] + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 97 LIMIT 1 + Adherent::Reglement Load (2.9ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 52 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 52 + Adherent::Reglement Load (5.1ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 52 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 52 + Adherent::Adhesion Load (3.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Adherent::Member Load (4.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 99 LIMIT 1 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 97 + Adherent::Member Load (1.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 98 LIMIT 1 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 96 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (19.7ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 37ms (Views: 13.8ms | ActiveRecord: 18.9ms) +  (2.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (2.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (3.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 124) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (3.9ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 124) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 124], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 124) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 124) LIMIT 1 + SQL (4.7ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 124], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 124) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (3.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 124) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 124], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 100 + Adherent::Adhesion Load (3.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 100 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (5.7ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a21ad54,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 100], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/100/payments/new" for 127.0.0.1 at 2013-08-30 19:23:50 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"100"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (3.8ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "100"]] + Adherent::Adhesion Load (0.3ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 100 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (4.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 98 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (11.5ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (7.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.2ms) +Completed 200 OK in 38ms (Views: 23.3ms | ActiveRecord: 8.8ms) +Started POST "/adherent/members/100/payments" for 127.0.0.1 at 2013-08-30 19:23:50 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"80", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"100"} + Organism Load (1.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (4.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "100"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a5e8634,'0.8E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 100], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 100 LIMIT 1 + Adherent::Adhesion Load (3.1ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 100 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (6.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 98 + SQL (0.5ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 98], ["amount", #<BigDecimal:a610120,'0.5E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["payment_id", 53], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/100/payments +Completed 302 Found in 28ms (ActiveRecord: 16.1ms) +Started GET "/adherent/members/100/payments" for 127.0.0.1 at 2013-08-30 19:23:50 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"100"} + Organism Load (4.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "100"]] + Adherent::Payment Load (1.9ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 100 + Adherent::Reglement Load (5.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 53 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 98 LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 100 LIMIT 1 + Adherent::Reglement Load (4.9ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 53 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 53 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 53 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 53 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 100 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (19.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 33ms (Views: 12.9ms | ActiveRecord: 18.1ms) + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 100 ORDER BY "adherent_payments"."id" DESC LIMIT 1 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 101 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 101 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.3ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a8147f0,'0.49E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 101], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (1.9ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 102 + Adherent::Adhesion Load (5.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 102 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a79c9d0,'0.27E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 102], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/payments/53/reglements/new" for 127.0.0.1 at 2013-08-30 19:23:50 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"53"} + Organism Load (4.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "53"]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 100 LIMIT 1 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 53 +  (5.1ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 53 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 53 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 53 + Adherent::Adhesion Load (9.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 101 LIMIT 1 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 99 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 102 LIMIT 1 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 100 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (19.1ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 43ms (Views: 17.2ms | ActiveRecord: 21.5ms) + Adherent::Adhesion Load (0.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 100 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Payment Load (2.9ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 100 ORDER BY "adherent_payments"."id" DESC LIMIT 1 + Adherent::Reglement Load (5.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 53 +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 53 +  (0.1ms) ROLLBACK +  (4.7ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 125) LIMIT 1 +  (5.4ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 125) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 125], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 125) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (2.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 125) LIMIT 1 + SQL (5.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 125], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.9ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 125) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 125) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 125], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (6.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 103 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 103 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a8e164c,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 103], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/103/payments/new" for 127.0.0.1 at 2013-08-30 19:23:50 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"103"} + Organism Load (2.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "103"]] + Adherent::Adhesion Load (6.2ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 103 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 101 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (9.4ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 33ms (Views: 18.3ms | ActiveRecord: 9.4ms) +Started POST "/adherent/members/103/payments" for 127.0.0.1 at 2013-08-30 19:23:50 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"80", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"103"} + Organism Load (4.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "103"]] +  (0.3ms) SAVEPOINT active_record_1 + SQL (3.9ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a9a4e6c,'0.8E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 103], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 103 LIMIT 1 + Adherent::Adhesion Load (4.8ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 103 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 101 + SQL (0.4ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 101], ["amount", #<BigDecimal:a9caa7c,'0.5E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["payment_id", 54], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (6.5ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/103/payments +Completed 302 Found in 37ms (ActiveRecord: 20.8ms) +Started GET "/adherent/members/103/payments" for 127.0.0.1 at 2013-08-30 19:23:50 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"103"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "103"]] + Adherent::Payment Load (3.9ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 103 + Adherent::Reglement Load (6.1ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 101 LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 103 LIMIT 1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 103 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (15.8ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 33ms (Views: 19.6ms | ActiveRecord: 11.7ms) + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 103 ORDER BY "adherent_payments"."id" DESC LIMIT 1 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 104 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 104 ORDER BY to_date DESC LIMIT 1 +  (5.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aa7bb4c,'0.49E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 104], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 105 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 105 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aa97d88,'0.27E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 105], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (1.5ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/payments/54/reglements/new" for 127.0.0.1 at 2013-08-30 19:23:50 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"54"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "54"]] + Adherent::Member Load (1.7ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 103 LIMIT 1 + Adherent::Reglement Load (3.6ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 + Adherent::Reglement Load (2.6ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 + Adherent::Adhesion Load (4.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Adherent::Member Load (8.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 104 LIMIT 1 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 102 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 105 LIMIT 1 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 103 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (22.5ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 48ms (Views: 16.4ms | ActiveRecord: 22.6ms) +Started POST "/adherent/payments/54/reglements" for 127.0.0.1 at 2013-08-30 19:23:50 +0200 +Processing by Adherent::ReglementsController#create as HTML + Parameters: {"utf8"=>"✓", "reglement"=>{"adhesion_id"=>"102"}, "commit"=>"Enregistrer", "payment_id"=>"54"} + Organism Load (8.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "54"]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", "102"]] + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 102 +  (0.1ms) SAVEPOINT active_record_1 + SQL (6.5ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 102], ["amount", #<BigDecimal:aba5ae0,'0.3E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["payment_id", 54], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 103 LIMIT 1 +Redirected to http://www.example.com/adherent/members/103/payments +Completed 302 Found in 25ms (ActiveRecord: 17.1ms) +Started GET "/adherent/members/103/payments" for 127.0.0.1 at 2013-08-30 19:23:50 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"103"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (6.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "103"]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 103 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 101 LIMIT 1 + Adherent::Member Load (3.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 103 LIMIT 1 + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 102 LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 104 LIMIT 1 + Adherent::Reglement Load (3.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 +  (1.5ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 54 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 103 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (20.4ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 33ms (Views: 14.7ms | ActiveRecord: 16.6ms) + Adherent::Reglement Load (6.1ms) SELECT "adherent_reglements".* FROM "adherent_reglements" +  (0.1ms) ROLLBACK +  (0.5ms) BEGIN +  (0.1ms) COMMIT +  (2.0ms) BEGIN + Organism Load (4.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 126) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (4.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 126) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 126], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 126) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 126) LIMIT 1 + SQL (4.8ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 126], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 126) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (5.1ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 126) LIMIT 1 + SQL (0.2ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 126], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 106 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 106 ORDER BY to_date DESC LIMIT 1 +  (1.9ms) SAVEPOINT active_record_1 + SQL (3.7ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:adacb90,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 106], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/106/payments/new" for 127.0.0.1 at 2013-08-30 19:23:50 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"106"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (3.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "106"]] + Adherent::Adhesion Load (0.8ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 106 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (3.9ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 104 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (12.8ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 36ms (Views: 16.7ms | ActiveRecord: 8.5ms) +Started POST "/adherent/members/106/payments" for 127.0.0.1 at 2013-08-30 19:23:50 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"80", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"106"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "106"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ae3ad3c,'0.8E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 106], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] + Adherent::Member Load (4.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 106 LIMIT 1 + Adherent::Adhesion Load (0.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 106 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 104 + SQL (3.2ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 104], ["amount", #<BigDecimal:ae488c4,'0.5E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["payment_id", 55], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (2.5ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/106/payments +Completed 302 Found in 26ms (ActiveRecord: 12.0ms) +Started GET "/adherent/members/106/payments" for 127.0.0.1 at 2013-08-30 19:23:50 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"106"} + Organism Load (1.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (2.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "106"]] + Adherent::Payment Load (5.9ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 106 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 104 LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 106 LIMIT 1 + Adherent::Reglement Load (2.7ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 +  (0.6ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 + Adherent::Reglement Load (4.6ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 106 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (16.8ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 32ms (Views: 12.7ms | ActiveRecord: 17.7ms) + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 106 ORDER BY "adherent_payments"."id" DESC LIMIT 1 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 107 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 107 ORDER BY to_date DESC LIMIT 1 +  (3.4ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:af3b9ac,'0.49E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 107], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (4.6ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 108 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 108 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (5.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:af529a4,'0.27E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 108], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/payments/55/reglements/new" for 127.0.0.1 at 2013-08-30 19:23:50 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"55"} + Organism Load (2.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (2.0ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "55"]] + Adherent::Member Load (5.8ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 106 LIMIT 1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 + Adherent::Adhesion Load (0.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Adherent::Member Load (2.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 108 LIMIT 1 +  (4.1ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 106 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 107 LIMIT 1 +  (5.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 105 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (145.3ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 165ms (Views: 136.0ms | ActiveRecord: 24.0ms) +Started POST "/adherent/payments/55/reglements" for 127.0.0.1 at 2013-08-30 19:23:51 +0200 +Processing by Adherent::ReglementsController#create as HTML + Parameters: {"utf8"=>"✓", "reglement"=>{"adhesion_id"=>"105"}, "commit"=>"Enregistrer", "payment_id"=>"55"} + Organism Load (4.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.2ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "55"]] + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", "105"]] + Adherent::Reglement Load (3.1ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 105 +  (3.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 105], ["amount", #<BigDecimal:9b69f8c,'0.3E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["payment_id", 55], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 106 LIMIT 1 +Redirected to http://www.example.com/adherent/members/106/payments +Completed 302 Found in 21ms (ActiveRecord: 13.0ms) +Started GET "/adherent/members/106/payments" for 127.0.0.1 at 2013-08-30 19:23:51 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"106"} + Organism Load (4.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "106"]] + Adherent::Payment Load (6.8ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 106 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 104 LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 106 LIMIT 1 + Adherent::Adhesion Load (5.1ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 105 LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 107 LIMIT 1 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 +  (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 55 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 106 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (17.9ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 42ms (Views: 19.0ms | ActiveRecord: 18.2ms) + Adherent::Adhesion Load (7.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 107 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 105 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (1.2ms) SAVEPOINT active_record_1 + SQL (31.8ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 127) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (5.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 127) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 127], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 127) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 127) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 127], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (2.1ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 127) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (1.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 127) LIMIT 1 + SQL (3.9ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 127], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 109 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 109 ORDER BY to_date DESC LIMIT 1 +  (3.4ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a45801c,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 109], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (1.7ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/109/payments/new" for 127.0.0.1 at 2013-08-30 19:23:51 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"109"} + Organism Load (4.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "109"]] + Adherent::Adhesion Load (5.3ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 109 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 107 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (12.9ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 31ms (Views: 16.1ms | ActiveRecord: 10.1ms) +Started POST "/adherent/members/109/payments" for 127.0.0.1 at 2013-08-30 19:23:51 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"80", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"109"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "109"]] +  (4.9ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a72883c,'0.8E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 109], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 109 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 109 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (5.8ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 107 + SQL (0.5ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 107], ["amount", #<BigDecimal:a75e428,'0.5E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["payment_id", 56], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/109/payments +Completed 302 Found in 24ms (ActiveRecord: 13.2ms) +Started GET "/adherent/members/109/payments" for 127.0.0.1 at 2013-08-30 19:23:51 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"109"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "109"]] + Adherent::Payment Load (5.1ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 109 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 + Adherent::Adhesion Load (1.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 107 LIMIT 1 + Adherent::Member Load (3.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 109 LIMIT 1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 + Adherent::Reglement Load (6.7ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 109 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (21.1ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.0ms) +Completed 200 OK in 34ms (Views: 14.2ms | ActiveRecord: 17.8ms) + Adherent::Payment Load (6.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 109 ORDER BY "adherent_payments"."id" DESC LIMIT 1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 110 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 110 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a85bccc,'0.49E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 110], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (1.8ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 111 + Adherent::Adhesion Load (7.0ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 111 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a860290,'0.27E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 111], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/payments/56/reglements/new" for 127.0.0.1 at 2013-08-30 19:23:51 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"56"} + Organism Load (4.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.6ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "56"]] + Adherent::Member Load (2.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 109 LIMIT 1 + Adherent::Reglement Load (8.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 + Adherent::Adhesion Load (2.3ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Adherent::Member Load (1.8ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 111 LIMIT 1 +  (6.8ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 109 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 110 LIMIT 1 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 108 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (20.7ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 48ms (Views: 13.0ms | ActiveRecord: 27.1ms) +Started POST "/adherent/payments/56/reglements" for 127.0.0.1 at 2013-08-30 19:23:51 +0200 +Processing by Adherent::ReglementsController#create as HTML + Parameters: {"utf8"=>"✓", "reglement"=>{"adhesion_id"=>"108"}, "commit"=>"Enregistrer", "payment_id"=>"56"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.2ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "56"]] + Adherent::Adhesion Load (6.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", "108"]] + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 108 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 108], ["amount", #<BigDecimal:a8fad90,'0.3E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["payment_id", 56], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 109 LIMIT 1 +Redirected to http://www.example.com/adherent/members/109/payments +Completed 302 Found in 20ms (ActiveRecord: 8.5ms) +Started GET "/adherent/members/109/payments" for 127.0.0.1 at 2013-08-30 19:23:51 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"109"} + Organism Load (5.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "109"]] + Adherent::Payment Load (4.8ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 109 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 107 LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 109 LIMIT 1 + Adherent::Adhesion Load (5.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 108 LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 110 LIMIT 1 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 + Adherent::Reglement Load (6.9ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 56 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 109 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (24.8ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 41ms (Views: 15.4ms | ActiveRecord: 24.4ms) + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" LIMIT 1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 107 LIMIT 1 + Adherent::Member Load (1.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 109 LIMIT 1 +  (0.9ms) ROLLBACK +  (3.7ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (2.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 128) LIMIT 1 +  (4.9ms) SAVEPOINT active_record_1 + Adherent::Member Exists (1.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 128) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 128], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 128) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (3.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 128) LIMIT 1 + SQL (0.8ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 128], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 128) LIMIT 1 +  (2.4ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 128) LIMIT 1 + SQL (5.9ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 128], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 112 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 112 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aa41dfc,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 112], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (1.6ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/112/payments/new" for 127.0.0.1 at 2013-08-30 19:23:51 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"112"} + Organism Load (3.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (2.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "112"]] + Adherent::Adhesion Load (1.8ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 112 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (1.6ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 110 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (11.0ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.2ms) +Completed 200 OK in 33ms (Views: 18.3ms | ActiveRecord: 9.3ms) +Started POST "/adherent/members/112/payments" for 127.0.0.1 at 2013-08-30 19:23:51 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"80", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"112"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "112"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ab0c28c,'0.8E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 112], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 112 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 112 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 110 + SQL (0.4ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 110], ["amount", #<BigDecimal:ab37d74,'0.5E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["payment_id", 57], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/112/payments +Completed 302 Found in 16ms (ActiveRecord: 2.5ms) +Started GET "/adherent/members/112/payments" for 127.0.0.1 at 2013-08-30 19:23:51 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"112"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "112"]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 112 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 110 LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 112 LIMIT 1 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 +  (0.9ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 + Adherent::Reglement Load (2.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 112 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (15.6ms) + Rendered layouts/adherent/_header.html.haml (0.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 29ms (Views: 22.1ms | ActiveRecord: 5.3ms) + Adherent::Payment Load (0.8ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 112 ORDER BY "adherent_payments"."id" DESC LIMIT 1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 113 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 113 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:abf386c,'0.49E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 113], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 114 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 114 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.8ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ad6a0ec,'0.27E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 114], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (3.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/payments/57/reglements/new" for 127.0.0.1 at 2013-08-30 19:23:51 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"57"} + Organism Load (5.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.2ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "57"]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 112 LIMIT 1 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 + Adherent::Reglement Load (5.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 + Adherent::Adhesion Load (7.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 113 LIMIT 1 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 111 + Adherent::Member Load (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 114 LIMIT 1 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 112 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (17.2ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 44ms (Views: 13.8ms | ActiveRecord: 19.9ms) +Started POST "/adherent/payments/57/reglements" for 127.0.0.1 at 2013-08-30 19:23:51 +0200 +Processing by Adherent::ReglementsController#create as HTML + Parameters: {"utf8"=>"✓", "reglement"=>{"adhesion_id"=>"111"}, "commit"=>"Enregistrer", "payment_id"=>"57"} + Organism Load (2.8ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.2ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "57"]] + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", "111"]] + Adherent::Reglement Load (2.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 +  (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 +  (3.7ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 111 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 111], ["amount", #<BigDecimal:adb9de0,'0.3E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["payment_id", 57], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 112 LIMIT 1 +Redirected to http://www.example.com/adherent/members/112/payments +Completed 302 Found in 17ms (ActiveRecord: 10.4ms) +Started GET "/adherent/members/112/payments" for 127.0.0.1 at 2013-08-30 19:23:51 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"112"} + Organism Load (4.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (1.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "112"]] + Adherent::Payment Load (0.6ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 112 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 + Adherent::Adhesion Load (3.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 110 LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 112 LIMIT 1 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 111 LIMIT 1 + Adherent::Member Load (3.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 113 LIMIT 1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 57 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 112 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (22.1ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 47ms (Views: 29.1ms | ActiveRecord: 15.4ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.6ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (2.7ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 129) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 129) LIMIT 1 + SQL (3.2ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 129], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 129) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (4.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 129) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 129], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 129) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (4.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 129) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 129], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.0ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 115 + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 115 ORDER BY to_date DESC LIMIT 1 +  (5.9ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aed55f8,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 115], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:51 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/115/payments/new" for 127.0.0.1 at 2013-08-30 19:23:51 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"115"} + Organism Load (3.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "115"]] + Adherent::Adhesion Load (0.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 115 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 113 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (12.9ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 30ms (Views: 16.2ms | ActiveRecord: 4.2ms) +Started POST "/adherent/members/115/payments" for 127.0.0.1 at 2013-08-30 19:23:52 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"80", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"115"} + Organism Load (3.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (6.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "115"]] +  (0.5ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:921ca88,'0.8E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 115], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 115 LIMIT 1 + Adherent::Adhesion Load (3.1ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 115 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 113 + SQL (0.4ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 113], ["amount", #<BigDecimal:94036a8,'0.5E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["payment_id", 58], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/115/payments +Completed 302 Found in 32ms (ActiveRecord: 15.1ms) +Started GET "/adherent/members/115/payments" for 127.0.0.1 at 2013-08-30 19:23:52 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"115"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (6.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "115"]] + Adherent::Payment Load (0.4ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 115 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 113 LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 115 LIMIT 1 + Adherent::Reglement Load (4.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 115 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (17.0ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 31ms (Views: 15.9ms | ActiveRecord: 12.9ms) + Adherent::Payment Load (5.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 115 ORDER BY "adherent_payments"."id" DESC LIMIT 1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 116 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 116 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:9e7508c,'0.49E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 116], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (5.9ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 117 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 117 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:9eed578,'0.27E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 117], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/payments/58/reglements/new" for 127.0.0.1 at 2013-08-30 19:23:52 +0200 +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"58"} + Organism Load (4.8ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.2ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "58"]] + Adherent::Member Load (0.7ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 115 LIMIT 1 + Adherent::Reglement Load (4.8ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 + Adherent::Reglement Load (3.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 + Adherent::Adhesion Load (0.8ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) + Adherent::Member Load (0.9ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 116 LIMIT 1 +  (6.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 114 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 117 LIMIT 1 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 115 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/reglements/_form.html.haml (22.0ms) + Rendered layouts/adherent/_header.html.haml (0.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 46ms (Views: 18.2ms | ActiveRecord: 22.9ms) +Started POST "/adherent/payments/58/reglements" for 127.0.0.1 at 2013-08-30 19:23:52 +0200 +Processing by Adherent::ReglementsController#create as HTML + Parameters: {"utf8"=>"✓", "reglement"=>{"adhesion_id"=>"114"}, "commit"=>"Enregistrer", "payment_id"=>"58"} + Organism Load (5.1ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Payment Load (0.2ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 LIMIT 1 [["id", "58"]] + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 LIMIT 1 [["id", "114"]] + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 114 +  (4.3ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 114], ["amount", #<BigDecimal:a5b2cdc,'0.3E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["payment_id", 58], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 115 LIMIT 1 +Redirected to http://www.example.com/adherent/members/115/payments +Completed 302 Found in 19ms (ActiveRecord: 11.2ms) +Started GET "/adherent/members/115/payments" for 127.0.0.1 at 2013-08-30 19:23:52 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"115"} + Organism Load (8.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "115"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 115 + Adherent::Reglement Load (3.9ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 113 LIMIT 1 + Adherent::Member Load (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 115 LIMIT 1 + Adherent::Adhesion Load (5.9ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 114 LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 116 LIMIT 1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 58 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 115 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (21.7ms) + Rendered layouts/adherent/_header.html.haml (0.0ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 42ms (Views: 20.7ms | ActiveRecord: 19.9ms) + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" ORDER BY "adherent_reglements"."id" DESC LIMIT 1 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 114 LIMIT 1 + Adherent::Member Load (3.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 116 LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.0ms) BEGIN + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (6.1ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 130) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 130) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 130], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (3.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 130) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (4.9ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 130) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 130], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 130) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 130) LIMIT 1 + SQL (3.0ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 130], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (4.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 118 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 118 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.3ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a84c45c,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 118], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/118/payments/new" for 127.0.0.1 at 2013-08-30 19:23:52 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"118"} + Organism Load (1.1ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (5.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "118"]] + Adherent::Adhesion Load (0.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 118 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 116 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (4.6ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 27ms (Views: 14.6ms | ActiveRecord: 7.3ms) +Started POST "/adherent/members/118/payments" for 127.0.0.1 at 2013-08-30 19:23:52 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"66", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"118"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.8ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "118"]] +  (4.7ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a8a5d04,'0.66E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 118], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 118 LIMIT 1 + Adherent::Adhesion Load (4.3ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 118 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 116 + SQL (4.5ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 116], ["amount", #<BigDecimal:a8c08d4,'0.5E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["payment_id", 59], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/118/payments +Completed 302 Found in 27ms (ActiveRecord: 16.1ms) +Started GET "/adherent/members/118/payments" for 127.0.0.1 at 2013-08-30 19:23:52 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"118"} + Organism Load (4.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "118"]] + Adherent::Payment Load (7.7ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 118 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 59 + Adherent::Adhesion Load (0.0ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 116 LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 118 LIMIT 1 + Adherent::Reglement Load (1.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 59 +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 59 + Adherent::Reglement Load (5.0ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 59 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 59 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 118 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (16.8ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (3.6ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 39ms (Views: 17.6ms | ActiveRecord: 19.9ms) + Adherent::Payment Load (6.8ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 118 ORDER BY "adherent_payments"."id" DESC LIMIT 1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 59 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 59 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (2.9ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 131) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (1.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 131) LIMIT 1 + SQL (6.6ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 131], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 131) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 131) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 131], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 131) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 131) LIMIT 1 + SQL (0.7ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 131], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 121 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 121 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (6.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aa062c0,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 121], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/121/payments/new" for 127.0.0.1 at 2013-08-30 19:23:52 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"121"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "121"]] + Adherent::Adhesion Load (5.0ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 121 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.6ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 117 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (11.4ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 26ms (Views: 14.6ms | ActiveRecord: 6.5ms) +Started POST "/adherent/members/121/payments" for 127.0.0.1 at 2013-08-30 19:23:52 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"66", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"121"} + Organism Load (6.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "121"]] +  (1.7ms) SAVEPOINT active_record_1 + SQL (1.8ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aac27e0,'0.66E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 121], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] + Adherent::Member Load (5.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 121 LIMIT 1 + Adherent::Adhesion Load (1.4ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 121 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 117 + SQL (4.4ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 117], ["amount", #<BigDecimal:aae243c,'0.5E2',9(27)>], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["payment_id", 60], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/121/payments +Completed 302 Found in 31ms (ActiveRecord: 20.9ms) +Started GET "/adherent/members/121/payments" for 127.0.0.1 at 2013-08-30 19:23:52 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"121"} + Organism Load (8.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "121"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 121 + Adherent::Reglement Load (6.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 60 + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 117 LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 121 LIMIT 1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 60 +  (0.7ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 60 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 60 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 60 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 121 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (14.9ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 36ms (Views: 16.8ms | ActiveRecord: 17.1ms) +  (0.8ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 121 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.0ms) COMMIT +  (0.4ms) BEGIN + Organism Load (5.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 132) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 132) LIMIT 1 + SQL (3.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 132], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (1.1ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 132) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (4.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 132) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 132], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (2.7ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 132) LIMIT 1 +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Member Exists (1.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 132) LIMIT 1 + SQL (5.0ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 132], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 124 + Adherent::Adhesion Load (1.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 124 ORDER BY to_date DESC LIMIT 1 +  (6.6ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:acb1ec0,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 124], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "adherent_reglements" +Started GET "/adherent/members/124/payments/new" for 127.0.0.1 at 2013-08-30 19:23:52 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"124"} + Organism Load (7.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "124"]] + Adherent::Adhesion Load (0.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 124 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (7.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 118 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (16.1ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 42ms (Views: 19.7ms | ActiveRecord: 15.6ms) +Started POST "/adherent/members/124/payments" for 127.0.0.1 at 2013-08-30 19:23:52 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"50", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"124"} + Organism Load (4.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "124"]] +  (3.4ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:adb2c84,'0.5E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 124], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] + Adherent::Member Load (5.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 124 LIMIT 1 + Adherent::Adhesion Load (0.7ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 124 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 118 + SQL (4.2ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 118], ["amount", #<BigDecimal:adb0f10,'0.5E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["payment_id", 61], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/124/payments +Completed 302 Found in 28ms (ActiveRecord: 18.4ms) +Started GET "/adherent/members/124/payments" for 127.0.0.1 at 2013-08-30 19:23:52 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"124"} + Organism Load (5.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "124"]] + Adherent::Payment Load (5.6ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 124 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 61 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 118 LIMIT 1 + Adherent::Member Load (2.9ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 124 LIMIT 1 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 61 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 61 + Adherent::Reglement Load (6.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 61 + CACHE (0.1ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 61 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 124 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (17.8ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.0ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.0ms) +Completed 200 OK in 35ms (Views: 11.7ms | ActiveRecord: 21.4ms) +  (0.3ms) SELECT COUNT(*) FROM "adherent_reglements"  +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (4.8ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.9ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 133) LIMIT 1 +  (3.2ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 133) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 133], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 133) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (5.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 133) LIMIT 1 + SQL (0.2ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 133], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 133) LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 133) LIMIT 1 + SQL (1.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 133], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (8.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 127 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 127 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (13.8ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ae9b40c,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 127], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:52 UTC +00:00]] +  (5.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/127/payments/new" for 127.0.0.1 at 2013-08-30 19:23:52 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"127"} + Organism Load (5.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "127"]] + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 127 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (2.6ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 119 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (10.1ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 33ms (Views: 19.0ms | ActiveRecord: 8.5ms) +Started POST "/adherent/members/127/payments" for 127.0.0.1 at 2013-08-30 19:23:53 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"50", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"127"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "127"]] +  (6.8ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:9d4228c,'0.5E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 127], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 127 LIMIT 1 + Adherent::Adhesion Load (0.6ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 127 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 119 + SQL (4.6ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 119], ["amount", #<BigDecimal:9d5ba20,'0.5E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["payment_id", 62], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/127/payments +Completed 302 Found in 24ms (ActiveRecord: 13.9ms) +Started GET "/adherent/members/127/payments" for 127.0.0.1 at 2013-08-30 19:23:53 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"127"} + Organism Load (5.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "127"]] + Adherent::Payment Load (2.9ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 127 + Adherent::Reglement Load (3.6ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 62 + Adherent::Adhesion Load (1.0ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 119 LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 127 LIMIT 1 + Adherent::Reglement Load (0.4ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 62 +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 62 + Adherent::Reglement Load (0.2ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 62 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 62 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 127 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (19.0ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 34ms (Views: 17.9ms | ActiveRecord: 14.1ms) +  (0.7ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 127 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (2.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 134) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 134) LIMIT 1 + SQL (8.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 134], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 134) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 134) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 134], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 134) LIMIT 1 +  (0.5ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 134) LIMIT 1 + SQL (6.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 134], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 130 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 130 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a5972fc,'0.5E2',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 130], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] +  (6.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 130 +Started GET "/adherent/members/130/payments/new" for 127.0.0.1 at 2013-08-30 19:23:53 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"130"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (2.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "130"]] + Adherent::Adhesion Load (2.4ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 130 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (1.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 120 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (9.4ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 29ms (Views: 12.6ms | ActiveRecord: 5.7ms) +Started POST "/adherent/members/130/payments" for 127.0.0.1 at 2013-08-30 19:23:53 +0200 +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"utf8"=>"✓", "payment"=>{"date"=>"01/08/2013", "amount"=>"50", "mode"=>"CB"}, "commit"=>"Enregistrer", "member_id"=>"130"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (5.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "130"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a7f781c,'0.5E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["date", Thu, 01 Aug 2013], ["member_id", 130], ["mode", "CB"], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 130 LIMIT 1 + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 130 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (4.1ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 120 + SQL (0.5ms) INSERT INTO "adherent_reglements" ("adhesion_id", "amount", "created_at", "payment_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["adhesion_id", 120], ["amount", #<BigDecimal:a7f5184,'0.5E2',9(18)>], ["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["payment_id", 63], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/130/payments +Completed 302 Found in 27ms (ActiveRecord: 12.2ms) +Started GET "/adherent/members/130/payments" for 127.0.0.1 at 2013-08-30 19:23:53 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"130"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "130"]] + Adherent::Payment Load (3.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 130 + Adherent::Reglement Load (0.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 63 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = 120 LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 130 LIMIT 1 + Adherent::Reglement Load (0.6ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 63 +  (5.1ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 63 + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 63 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 63 + CACHE (0.0ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 130 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_payment.html.haml (21.6ms) + Rendered layouts/adherent/_header.html.haml (2.8ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.2ms) +Completed 200 OK in 36ms (Views: 23.8ms | ActiveRecord: 10.7ms) +  (5.8ms) SELECT COUNT(*) FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 130 +  (0.0ms) ROLLBACK + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) BEGIN + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] +  (1.0ms) COMMIT + Adherent::Member Exists (2.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 135) LIMIT 1 +  (0.1ms) BEGIN + Adherent::Member Exists (6.9ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 135) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 135], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] +  (0.7ms) COMMIT + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 135) LIMIT 1 +  (0.0ms) BEGIN + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 135) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 135], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] +  (0.7ms) COMMIT + Adherent::Member Exists (7.1ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 135) LIMIT 1 +  (0.1ms) BEGIN + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 135) LIMIT 1 + SQL (0.6ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 135], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] +  (2.7ms) COMMIT + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 135) LIMIT 1 +  (0.2ms) BEGIN + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 135) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_3"], ["number", "Adh003"], ["organism_id", 135], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] +  (0.6ms) COMMIT + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 135) LIMIT 1 +  (0.1ms) BEGIN + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 135) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_4"], ["number", "Adh004"], ["organism_id", 135], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] +  (0.8ms) COMMIT + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  + Adherent::Adhesion Load (4.0ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 133 + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 133 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) BEGIN + SQL (2.9ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a969efc,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 133], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:23:53 UTC +00:00]] +  (1.6ms) COMMIT +Started GET "/adherent/members/133/adhesions" for 127.0.0.1 at 2013-08-30 19:25:14 +0200 +Processing by Adherent::AdhesionsController#index as HTML + Parameters: {"member_id"=>"133"} + Organism Load (0.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (6.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "133"]] +  (0.0ms) SELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 133 + Adherent::Adhesion Load (9.1ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 133 +  (0.5ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 121 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 121 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 211ms (Views: 117.8ms | ActiveRecord: 93.4ms) +Started GET "/assets/adherent/application.css" for 127.0.0.1 at 2013-08-30 19:25:16 +0200 +Compiled jquery.ui.core.css (3ms) (pid 22879) +Compiled jquery.ui.theme.css (16ms) (pid 22879) +Compiled jquery.ui.datepicker.css (192ms) (pid 22879) +Compiled adherent/adhesion.css (0ms) (pid 22879) +Compiled adherent/allpayments.css (0ms) (pid 22879) +Compiled adherent/bootstrap.css (0ms) (pid 22879) +Compiled adherent/coords.css (1ms) (pid 22879) +Compiled adherent/date_picker.css (2ms) (pid 22879) +Compiled adherent/demo_table.css (0ms) (pid 22879) +Compiled adherent/jc_application.css (2330ms) (pid 22879) +Compiled adherent/jcmenu.css (0ms) (pid 22879) +Compiled adherent/layouts.css (19ms) (pid 22879) +Compiled adherent/members.css (0ms) (pid 22879) +Compiled adherent/old_bootstrap.css (0ms) (pid 22879) +Compiled adherent/payments.css (0ms) (pid 22879) +Compiled adherent/reglements.css (0ms) (pid 22879) +Compiled adherent/application.css (3849ms) (pid 22879) +Served asset /adherent/application.css - 200 OK (4173ms) +Started GET "/assets/adherent/application.js" for 127.0.0.1 at 2013-08-30 19:25:21 +0200 +Compiled jquery.js (15ms) (pid 22879) +Compiled jquery_ujs.js (1ms) (pid 22879) +Compiled jquery.ui.core.js (0ms) (pid 22879) +Compiled jquery.ui.datepicker.js (162ms) (pid 22879) +Compiled adherent/adhesion.js (0ms) (pid 22879) +Compiled adherent/allpayments.js (0ms) (pid 22879) +Compiled adherent/bootstrap.js (1ms) (pid 22879) +Compiled adherent/coords.js (0ms) (pid 22879) +Compiled adherent/date_picker.js (0ms) (pid 22879) +Compiled adherent/jquery.dataTables.min.js (1ms) (pid 22879) +Compiled adherent/members.js (0ms) (pid 22879) +Compiled adherent/payments.js (0ms) (pid 22879) +Compiled adherent/reglements.js (0ms) (pid 22879) +Compiled adherent/application.js (1402ms) (pid 22879) +Served asset /adherent/application.js - 200 OK (2398ms) +Started GET "/assets/adherent/icones/users.png" for 127.0.0.1 at 2013-08-30 19:25:23 +0200 +Served asset /adherent/icones/users.png - 200 OK (99ms) +Started GET "/assets/adherent/icones/nouveau.png" for 127.0.0.1 at 2013-08-30 19:25:23 +0200 +Served asset /adherent/icones/nouveau.png - 200 OK (70ms) +Started GET "/assets/adherent/icones/supprimer.png" for 127.0.0.1 at 2013-08-30 19:25:23 +0200 +Served asset /adherent/icones/supprimer.png - 200 OK (37ms) +Started GET "/assets/adherent/icones/modifier.png" for 127.0.0.1 at 2013-08-30 19:25:23 +0200 +Served asset /adherent/icones/modifier.png - 200 OK (80ms) +Started DELETE "/adherent/members/133/adhesions/121" for 127.0.0.1 at 2013-08-30 19:25:32 +0200 +Processing by Adherent::AdhesionsController#destroy as HTML + Parameters: {"member_id"=>"133", "id"=>"121"} + Organism Load (2.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "133"]] + Adherent::Adhesion Load (13.0ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 133 AND "adherent_adhesions"."id" = $1 LIMIT 1 [["id", "121"]] +  (0.1ms) BEGIN + SQL (114.7ms) DELETE FROM "adherent_adhesions" WHERE "adherent_adhesions"."id" = $1 [["id", 121]] +  (227.6ms) COMMIT +Redirected to http://127.0.0.1:60838/adherent/members/133/adhesions +Completed 302 Found in 367ms (ActiveRecord: 358.1ms) +Started GET "/adherent/members/133/adhesions" for 127.0.0.1 at 2013-08-30 19:25:32 +0200 +Processing by Adherent::AdhesionsController#index as HTML + Parameters: {"member_id"=>"133"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "133"]] +  (0.5ms) SELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 133 +Redirected to http://127.0.0.1:60838/adherent/members/133/adhesions/new +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) +Started GET "/adherent/members/133/adhesions/new" for 127.0.0.1 at 2013-08-30 19:25:32 +0200 +Processing by Adherent::AdhesionsController#new as HTML + Parameters: {"member_id"=>"133"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "133"]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 133 + Adherent::Adhesion Load (30.0ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 133 ORDER BY to_date DESC LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (6.0ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 58ms (Views: 11.3ms | ActiveRecord: 30.8ms) +  (1.6ms) SELECT COUNT(*) FROM "adherent_adhesions" +Started GET "/assets/adherent/cal.gif" for 127.0.0.1 at 2013-08-30 19:25:33 +0200 +  (132.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL +Served asset /adherent/cal.gif - 200 OK (884ms) +  (147.5ms) select table_name from information_schema.views where table_schema = 'adh_test' +  (1185.4ms) TRUNCATE TABLE "adherent_adhesions", "adherent_coords", "adherent_members", "adherent_payments", "adherent_reglements", "organisms" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) BEGIN + SQL (26.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:35 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:35 UTC +00:00]] +  (19.7ms) COMMIT + Adherent::Member Exists (1.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.1ms) BEGIN + Adherent::Member Exists (1.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (2.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:35 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:35 UTC +00:00]] +  (4.6ms) COMMIT + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.1ms) BEGIN + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:35 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:35 UTC +00:00]] +  (1.6ms) COMMIT + Adherent::Member Exists (2.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.1ms) BEGIN + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:35 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:35 UTC +00:00]] +  (0.8ms) COMMIT + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.1ms) BEGIN + Adherent::Member Exists (0.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:35 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_3"], ["number", "Adh003"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:35 UTC +00:00]] +  (0.7ms) COMMIT + Adherent::Member Exists (2.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (6.0ms) BEGIN + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:35 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_4"], ["number", "Adh004"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:35 UTC +00:00]] +  (0.9ms) COMMIT + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" +  (0.1ms) BEGIN + SQL (30.6ms) INSERT INTO "adherent_payments" ("amount", "created_at", "date", "member_id", "mode", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:aa15450,'0.5432E2',18(45)>], ["created_at", Fri, 30 Aug 2013 17:25:36 UTC +00:00], ["date", Fri, 30 Aug 2013], ["member_id", 1], ["mode", "Chèque"], ["updated_at", Fri, 30 Aug 2013 17:25:36 UTC +00:00]] + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 1 LIMIT 1 + Adherent::Adhesion Load (1.0ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (4.7ms) COMMIT +Started GET "/adherent/members/1/payments/1" for 127.0.0.1 at 2013-08-30 19:25:36 +0200 +Processing by Adherent::PaymentsController#show as HTML + Parameters: {"member_id"=>"1", "id"=>"1"} + Organism Load (7.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (3.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "1"]] + Adherent::Payment Load (5.6ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 1 AND "adherent_payments"."id" = 1 LIMIT 1 + Adherent::Reglement Load (0.5ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 1 +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 1 + Adherent::Member Load (1.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = 1 LIMIT 1 + Adherent::Reglement Load (7.7ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 1 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 1 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 89ms (Views: 52.6ms | ActiveRecord: 32.6ms) +Started GET "/assets/adherent/icones/payment.png" for 127.0.0.1 at 2013-08-30 19:25:36 +0200 +Served asset /adherent/icones/payment.png - 200 OK (55ms) +Started GET "/assets/adherent/icones/money-plus.png" for 127.0.0.1 at 2013-08-30 19:25:36 +0200 +Served asset /adherent/icones/money-plus.png - 200 OK (94ms) +Started GET "/assets/adherent/icones/imputation.png" for 127.0.0.1 at 2013-08-30 19:25:36 +0200 +Served asset /adherent/icones/imputation.png - 200 OK (56ms) +Started DELETE "/adherent/members/1/payments/1" for 127.0.0.1 at 2013-08-30 19:25:37 +0200 +Processing by Adherent::PaymentsController#destroy as HTML + Parameters: {"member_id"=>"1", "id"=>"1"} + Organism Load (9.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (1.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "1"]] + Adherent::Payment Load (0.6ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 1 AND "adherent_payments"."id" = $1 LIMIT 1 [["id", "1"]] +  (2.1ms) BEGIN + Adherent::Reglement Load (1.3ms) SELECT "adherent_reglements".* FROM "adherent_reglements" WHERE "adherent_reglements"."payment_id" = 1 + SQL (5.7ms) DELETE FROM "adherent_payments" WHERE "adherent_payments"."id" = $1 [["id", 1]] +  (147.1ms) COMMIT +Redirected to http://127.0.0.1:60838/adherent/members/1/payments +Completed 302 Found in 211ms (ActiveRecord: 168.1ms) +Started GET "/adherent/members/1/payments" for 127.0.0.1 at 2013-08-30 19:25:37 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"1"} + Organism Load (0.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "1"]] + Adherent::Payment Load (0.3ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 1 + Rendered collection (0.0ms) + Rendered layouts/adherent/_header.html.haml (4.7ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 1.6ms) +  (0.4ms) SELECT COUNT(*) FROM "adherent_payments" +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL +  (180.0ms) TRUNCATE TABLE "adherent_adhesions", "adherent_coords", "adherent_members", "adherent_payments", "adherent_reglements", "organisms" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) BEGIN + SQL (0.9ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:38 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:38 UTC +00:00]] +  (2.4ms) COMMIT + Adherent::Member Exists (3.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.2ms) BEGIN + Adherent::Member Exists (6.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (25.9ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:38 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:38 UTC +00:00]] +  (3.4ms) COMMIT + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.1ms) BEGIN + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (4.2ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:38 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:38 UTC +00:00]] +  (15.7ms) COMMIT + Adherent::Member Exists (0.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.1ms) BEGIN + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:38 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:38 UTC +00:00]] +  (1.9ms) COMMIT + Adherent::Member Exists (6.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.1ms) BEGIN + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:38 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_3"], ["number", "Adh003"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:38 UTC +00:00]] +  (1.7ms) COMMIT + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.0ms) BEGIN + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (2.2ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:38 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_4"], ["number", "Adh004"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:38 UTC +00:00]] +  (1.3ms) COMMIT + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members"  +Started GET "/adherent/members" for 127.0.0.1 at 2013-08-30 19:25:38 +0200 +Processing by Adherent::MembersController#index as HTML + Organism Load (4.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (1.8ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = 1 +  (0.2ms) SHOW max_identifier_length +  (3.8ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 1 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (2.9ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 1 LIMIT 1 +  (5.3ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 2 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (1.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 2 LIMIT 1 +  (1.5ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 3 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.7ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 3 LIMIT 1 +  (7.7ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 4 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (3.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 4 LIMIT 1 +  (6.2ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 5 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (3.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 5 LIMIT 1 + Rendered layouts/adherent/_header.html.haml (3.6ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.0ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 269ms (Views: 201.5ms | ActiveRecord: 46.3ms) +Started GET "/assets/adherent/icones/card-address.png" for 127.0.0.1 at 2013-08-30 19:25:38 +0200 +Served asset /adherent/icones/card-address.png - 200 OK (97ms) +Started GET "/assets/adherent/icones/bandaid.png" for 127.0.0.1 at 2013-08-30 19:25:38 +0200 +Served asset /adherent/icones/bandaid.png - 200 OK (149ms) +Started GET "/assets/images/sort_asc.png" for 127.0.0.1 at 2013-08-30 19:25:39 +0200 +Served asset /images/sort_asc.png - 200 OK (289ms) +Started GET "/assets/images/back_disabled.png" for 127.0.0.1 at 2013-08-30 19:25:39 +0200 +Served asset /images/back_disabled.png - 200 OK (53ms) +Started GET "/assets/images/forward_disabled.png" for 127.0.0.1 at 2013-08-30 19:25:39 +0200 +Served asset /images/forward_disabled.png - 200 OK (26ms) +Started GET "/assets/images/sort_both.png" for 127.0.0.1 at 2013-08-30 19:25:39 +0200 +Served asset /images/sort_both.png - 200 OK (60ms) +Started DELETE "/adherent/members/1" for 127.0.0.1 at 2013-08-30 19:25:40 +0200 +Processing by Adherent::MembersController#destroy as HTML + Parameters: {"id"=>"1"} + Organism Load (1.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (11.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "1"]] +  (0.1ms) BEGIN + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 1 LIMIT 1 + SQL (8.2ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 1]] +  (132.3ms) COMMIT +Redirected to http://127.0.0.1:60838/adherent/members +Completed 302 Found in 183ms (ActiveRecord: 154.2ms) +Started GET "/adherent/members" for 127.0.0.1 at 2013-08-30 19:25:40 +0200 +Processing by Adherent::MembersController#index as HTML + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = 1 +  (0.3ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 2 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 2 LIMIT 1 +  (3.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 3 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 3 LIMIT 1 +  (10.1ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 4 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 4 LIMIT 1 +  (16.2ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 5 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (5.6ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 5 LIMIT 1 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 97ms (Views: 55.8ms | ActiveRecord: 37.6ms) +  (0.4ms) SELECT COUNT(*) FROM "adherent_members"  +  (1.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" DISABLE TRIGGER ALL;ALTER TABLE "adherent_coords" DISABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" DISABLE TRIGGER ALL;ALTER TABLE "organisms" DISABLE TRIGGER ALL;ALTER TABLE "adherent_members" DISABLE TRIGGER ALL;ALTER TABLE "adherent_payments" DISABLE TRIGGER ALL +  (264.8ms) TRUNCATE TABLE "adherent_adhesions", "adherent_coords", "adherent_members", "adherent_payments", "adherent_reglements", "organisms" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "adherent_coords" ENABLE TRIGGER ALL;ALTER TABLE "adherent_adhesions" ENABLE TRIGGER ALL;ALTER TABLE "adherent_reglements" ENABLE TRIGGER ALL;ALTER TABLE "organisms" ENABLE TRIGGER ALL;ALTER TABLE "adherent_members" ENABLE TRIGGER ALL;ALTER TABLE "adherent_payments" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Adherent::Member Exists (3.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh1' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (13.6ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:41 UTC +00:00], ["forname", "Jessie"], ["name", "James"], ["number", "Adh1"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:41 UTC +00:00]] +  (1.1ms) RELEASE SAVEPOINT active_record_1 +  (4.7ms) SAVEPOINT active_record_1 + SQL (6.7ms) INSERT INTO "adherent_coords" ("address", "city", "created_at", "gsm", "mail", "member_id", "office", "tel", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["address", nil], ["city", "Lille"], ["created_at", Fri, 30 Aug 2013 17:25:41 UTC +00:00], ["gsm", nil], ["mail", nil], ["member_id", 1], ["office", nil], ["tel", nil], ["updated_at", Fri, 30 Aug 2013 17:25:41 UTC +00:00], ["zip", 59000]] +  (1.3ms) RELEASE SAVEPOINT active_record_1 + Adherent::Coord Load (1.1ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 1 LIMIT 1 +  (4.4ms) SELECT COUNT(*) FROM "adherent_coords" +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) DELETE FROM "adherent_coords" WHERE "adherent_coords"."id" = $1 [["id", 1]] + SQL (3.1ms) DELETE FROM "adherent_members" WHERE "adherent_members"."id" = $1 [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (2.0ms) SELECT COUNT(*) FROM "adherent_coords"  +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +  (10.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::ReglementsController#create as HTML + Parameters: {"reglement"=>{"adhesion_id"=>"9"}, "payment_id"=>"1061"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:41 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:41 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/1060/payments +Completed 302 Found in 6ms (ActiveRecord: 1.5ms) +  (1.2ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"1063"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:41 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:41 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 1.0ms) +  (2.0ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::ReglementsController#new as HTML + Parameters: {"payment_id"=>"1066"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 10ms (Views: 1.3ms | ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"payment"=>{"amount"=>"57", "mode"=>"CB", "date"=>"30/08/2013"}, "member_id"=>"1068"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/1068/payments +Completed 302 Found in 5ms (ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"payment"=>{"amount"=>"57", "mode"=>"CB", "date"=>"30/08/2013"}, "member_id"=>"1070"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.8ms) +  (0.3ms) ROLLBACK +  (0.0ms) BEGIN +Processing by Adherent::PaymentsController#create as HTML + Parameters: {"payment"=>{"amount"=>"57", "mode"=>"CB", "date"=>"30/08/2013"}, "member_id"=>"1072"} + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/adherent/members/1072/payments +Completed 302 Found in 5ms (ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::PaymentsController#show as HTML + Parameters: {"member_id"=>"1074", "id"=>"1075"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.9ms) +  (0.0ms) ROLLBACK +  (1.3ms) BEGIN +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"1076"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 7ms (Views: 1.5ms | ActiveRecord: 0.8ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"1078"} + Organism Load (4.1ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 11ms (Views: 0.8ms | ActiveRecord: 4.6ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"1079"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (5.0ms) SAVEPOINT active_record_1 + SQL (5.8ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Completed 200 OK in 22ms (Views: 1.9ms | ActiveRecord: 11.1ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (2.3ms) ROLLBACK +  (0.0ms) BEGIN +  (2.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 11) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 11) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 11], ["updated_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 11) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 11) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 11], ["updated_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 11) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 11) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 11], ["updated_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (1.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 11) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 11) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_3"], ["number", "Adh003"], ["organism_id", 11], ["updated_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 11) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 11) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_4"], ["number", "Adh004"], ["organism_id", 11], ["updated_at", Fri, 30 Aug 2013 17:25:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members"  +Started GET "/adherent/members" for 127.0.0.1 at 2013-08-30 19:25:42 +0200 +Processing by Adherent::MembersController#index as HTML + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = 11 +  (1.5ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 2 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 2 LIMIT 1 +  (1.0ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 3 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 3 LIMIT 1 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 4 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 4 LIMIT 1 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 5 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 5 LIMIT 1 +  (1.0ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 6 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 6 LIMIT 1 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 39ms (Views: 29.8ms | ActiveRecord: 6.7ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 12) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 12) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 12], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 12) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 12) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 12], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 12) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 12) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 12], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 12) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 12) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_3"], ["number", "Adh003"], ["organism_id", 12], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 12) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 12) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_4"], ["number", "Adh004"], ["organism_id", 12], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.5ms) SELECT "adherent_members".* FROM "adherent_members"  +Started GET "/adherent/members" for 127.0.0.1 at 2013-08-30 19:25:43 +0200 +Processing by Adherent::MembersController#index as HTML + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = 12 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 7 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 7 LIMIT 1 +  (1.0ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 8 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 8 LIMIT 1 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 9 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 9 LIMIT 1 +  (0.7ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 10 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 10 LIMIT 1 +  (0.7ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 11 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.6ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 11 LIMIT 1 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.4ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 40ms (Views: 32.0ms | ActiveRecord: 5.7ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (2.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.2ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 13) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 13) LIMIT 1 + SQL (0.8ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 13], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 13) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 13) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 13], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 13) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 13) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 13], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 13) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 13) LIMIT 1 + SQL (0.6ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_3"], ["number", "Adh003"], ["organism_id", 13], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.1ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 13) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 13) LIMIT 1 + SQL (0.7ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_4"], ["number", "Adh004"], ["organism_id", 13], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  +Started GET "/adherent/members/new" for 127.0.0.1 at 2013-08-30 19:25:43 +0200 +Processing by Adherent::MembersController#new as HTML + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/members/_form.html.erb (8.7ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.0ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 45ms (Views: 41.6ms | ActiveRecord: 0.4ms) +  (0.3ms) SELECT COUNT(*) FROM "adherent_members"  +Started POST "/adherent/members" for 127.0.0.1 at 2013-08-30 19:25:43 +0200 +Processing by Adherent::MembersController#create as HTML + Parameters: {"utf8"=>"✓", "member"=>{"number"=>"ADH1", "name"=>"James", "forname"=>"Jessie", "birthdate"=>""}, "commit"=>"Créer le membre"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'ADH1' AND "adherent_members"."organism_id" = 13) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "Jessie"], ["name", "James"], ["number", "ADH1"], ["organism_id", 13], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/17/coord/new +Completed 302 Found in 7ms (ActiveRecord: 1.2ms) +Started GET "/adherent/members/17/coord/new" for 127.0.0.1 at 2013-08-30 19:25:43 +0200 +Processing by Adherent::CoordsController#new as HTML + Parameters: {"member_id"=>"17"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "17"]] + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 17 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/_form.html.erb (7.8ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 16ms (Views: 10.9ms | ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "adherent_members" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.0ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 14) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 14) LIMIT 1 + SQL (1.6ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 14], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 14) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 14) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 14], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 14) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.1ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 14) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 14], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 14) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (1.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 14) LIMIT 1 + SQL (0.6ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_3"], ["number", "Adh003"], ["organism_id", 14], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.7ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 14) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 14) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_4"], ["number", "Adh004"], ["organism_id", 14], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" +Started GET "/adherent/members" for 127.0.0.1 at 2013-08-30 19:25:43 +0200 +Processing by Adherent::MembersController#index as HTML + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = 14 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 18 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 18 LIMIT 1 +  (0.8ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 19 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 19 LIMIT 1 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 20 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 20 LIMIT 1 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 21 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 21 LIMIT 1 +  (0.7ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 22 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 22 LIMIT 1 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 38ms (Views: 29.9ms | ActiveRecord: 5.3ms) + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_coords" ("address", "city", "created_at", "gsm", "mail", "member_id", "office", "tel", "updated_at", "zip") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["address", nil], ["city", "Marseille"], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["gsm", nil], ["mail", nil], ["member_id", 18], ["office", nil], ["tel", nil], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["zip", nil]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 18 LIMIT 1 +Started GET "/adherent/members/18/coord" for 127.0.0.1 at 2013-08-30 19:25:43 +0200 +Processing by Adherent::CoordsController#show as HTML + Parameters: {"member_id"=>"18"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "18"]] + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 18 LIMIT 1 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 1.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (1.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.5ms) SAVEPOINT active_record_1 + SQL (2.2ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (7.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 15) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 15) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 15], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.9ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 15) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (5.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 15) LIMIT 1 + SQL (0.6ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 15], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 15) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 15) LIMIT 1 + SQL (0.6ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 15], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.7ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 15) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 15) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_3"], ["number", "Adh003"], ["organism_id", 15], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (4.7ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 15) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 15) LIMIT 1 + SQL (31.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_4"], ["number", "Adh004"], ["organism_id", 15], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" +Started GET "/adherent/members" for 127.0.0.1 at 2013-08-30 19:25:43 +0200 +Processing by Adherent::MembersController#index as HTML + Organism Load (4.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = 15 +  (2.3ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 23 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (4.9ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 23 LIMIT 1 +  (0.7ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 24 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (1.6ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 24 LIMIT 1 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 25 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (4.6ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 25 LIMIT 1 +  (6.3ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 26 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 26 LIMIT 1 +  (4.8ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 27 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 27 LIMIT 1 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 73ms (Views: 39.0ms | ActiveRecord: 31.1ms) + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" LIMIT 1 +Started GET "/adherent/members/23/payments" for 127.0.0.1 at 2013-08-30 19:25:43 +0200 +Processing by Adherent::PaymentsController#index as HTML + Parameters: {"member_id"=>"23"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "23"]] + Adherent::Payment Load (4.6ms) SELECT "adherent_payments".* FROM "adherent_payments" WHERE "adherent_payments"."member_id" = 23 + Rendered collection (0.0ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 18ms (Views: 11.0ms | ActiveRecord: 5.1ms) +  (0.3ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (3.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (7.0ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (1.5ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (2.9ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 16) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (1.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 16) LIMIT 1 + SQL (3.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 16], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 16) LIMIT 1 +  (4.4ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 16) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 16], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 16) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (1.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 16) LIMIT 1 + SQL (2.6ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 16], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (5.7ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 16) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 16) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_3"], ["number", "Adh003"], ["organism_id", 16], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 16) LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 16) LIMIT 1 + SQL (2.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_4"], ["number", "Adh004"], ["organism_id", 16], ["updated_at", Fri, 30 Aug 2013 17:25:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.0ms) SELECT "adherent_members".* FROM "adherent_members" +Started GET "/adherent/members" for 127.0.0.1 at 2013-08-30 19:25:43 +0200 +Processing by Adherent::MembersController#index as HTML + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = 16 +  (0.9ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 28 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 28 LIMIT 1 +  (1.0ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 29 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 29 LIMIT 1 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 30 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (8.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 30 LIMIT 1 +  (6.3ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 31 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.7ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 31 LIMIT 1 +  (7.8ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 32 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 32 LIMIT 1 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 93ms (Views: 54.7ms | ActiveRecord: 27.1ms) + Adherent::Member Load (3.5ms) SELECT "adherent_members".* FROM "adherent_members" LIMIT 1 +Started GET "/adherent/members/28/coord" for 127.0.0.1 at 2013-08-30 19:25:43 +0200 +Processing by Adherent::CoordsController#show as HTML + Parameters: {"member_id"=>"28"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "28"]] + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 28 LIMIT 1 +Redirected to http://www.example.com/adherent/members/28/coord/new +Completed 302 Found in 13ms (ActiveRecord: 1.3ms) +Started GET "/adherent/members/28/coord/new" for 127.0.0.1 at 2013-08-30 19:25:43 +0200 +Processing by Adherent::CoordsController#new as HTML + Parameters: {"member_id"=>"28"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (2.5ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "28"]] + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 28 LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/coords/_form.html.erb (144.9ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 173ms (Views: 158.5ms | ActiveRecord: 3.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.0ms) COMMIT +  (1.3ms) BEGIN + Organism Load (3.8ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (5.9ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.9ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 17) LIMIT 1 +  (1.3ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 17) LIMIT 1 + SQL (4.0ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 17], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 17) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 17) LIMIT 1 + SQL (2.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 17], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (1.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 17) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (3.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 17) LIMIT 1 + SQL (0.8ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 17], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (4.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 17) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 17) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_3"], ["number", "Adh003"], ["organism_id", 17], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (2.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 17) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 17) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_4"], ["number", "Adh004"], ["organism_id", 17], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  +Started GET "/adherent/members" for 127.0.0.1 at 2013-08-30 19:25:44 +0200 +Processing by Adherent::MembersController#index as HTML + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (1.7ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = 17 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 33 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 33 LIMIT 1 +  (2.5ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 34 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 34 LIMIT 1 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 35 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 35 LIMIT 1 +  (2.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 36 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (4.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 36 LIMIT 1 +  (0.7ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 37 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 37 LIMIT 1 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 82ms (Views: 64.8ms | ActiveRecord: 14.3ms) + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" LIMIT 1 + Adherent::Adhesion Load (3.0ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 33 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 33 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (6.1ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a89e734,'0.0',9(36)>], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 33], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/33/adhesions" for 127.0.0.1 at 2013-08-30 19:25:44 +0200 +Processing by Adherent::AdhesionsController#index as HTML + Parameters: {"member_id"=>"33"} + Organism Load (4.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "33"]] +  (0.5ms) SELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 33 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 33 +  (5.5ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 1 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 1 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 26ms (Views: 7.9ms | ActiveRecord: 10.7ms) +  (0.1ms) ROLLBACK +  (4.6ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (6.4ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (7.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 18) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 18) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 18], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 18) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 18) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 18], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 18) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 18) LIMIT 1 + SQL (3.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 18], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (7.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 18) LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 18) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_3"], ["number", "Adh003"], ["organism_id", 18], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 18) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 18) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_4"], ["number", "Adh004"], ["organism_id", 18], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  +Started GET "/adherent/members" for 127.0.0.1 at 2013-08-30 19:25:44 +0200 +Processing by Adherent::MembersController#index as HTML + Organism Load (6.8ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.4ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = 18 +  (3.8ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 38 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 38 LIMIT 1 +  (3.2ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 39 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (6.0ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 39 LIMIT 1 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 40 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.5ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 40 LIMIT 1 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 41 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 41 LIMIT 1 +  (6.2ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 42 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 42 LIMIT 1 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 70ms (Views: 39.3ms | ActiveRecord: 28.9ms) + Adherent::Member Load (2.5ms) SELECT "adherent_members".* FROM "adherent_members" LIMIT 1 +Started GET "/adherent/members/38/adhesions" for 127.0.0.1 at 2013-08-30 19:25:44 +0200 +Processing by Adherent::AdhesionsController#index as HTML + Parameters: {"member_id"=>"38"} + Organism Load (2.7ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "38"]] +  (2.2ms) SELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 38 +Redirected to http://www.example.com/adherent/members/38/adhesions/new +Completed 302 Found in 8ms (ActiveRecord: 5.1ms) +Started GET "/adherent/members/38/adhesions/new" for 127.0.0.1 at 2013-08-30 19:25:44 +0200 +Processing by Adherent::AdhesionsController#new as HTML + Parameters: {"member_id"=>"38"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (4.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "38"]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 38 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 38 ORDER BY to_date DESC LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (5.1ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (2.5ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 28ms (Views: 19.1ms | ActiveRecord: 5.1ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (4.7ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.6ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (1.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (4.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 19) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (1.5ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 19) LIMIT 1 + SQL (0.7ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 19], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (5.9ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 19) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 19) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 19], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 19) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (4.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 19) LIMIT 1 + SQL (0.8ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 19], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 19) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 19) LIMIT 1 + SQL (4.7ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_3"], ["number", "Adh003"], ["organism_id", 19], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 19) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 19) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_4"], ["number", "Adh004"], ["organism_id", 19], ["updated_at", Fri, 30 Aug 2013 17:25:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  +Started GET "/adherent/members" for 127.0.0.1 at 2013-08-30 19:25:44 +0200 +Processing by Adherent::MembersController#index as HTML + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (2.6ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = 19 +  (3.7ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 43 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.6ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 43 LIMIT 1 +  (4.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 44 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (4.6ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 44 LIMIT 1 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 45 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 45 LIMIT 1 +  (4.2ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 46 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 46 LIMIT 1 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 47 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.2ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 47 LIMIT 1 + Rendered layouts/adherent/_header.html.haml (0.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 74ms (Views: 48.8ms | ActiveRecord: 22.6ms) +Started GET "/adherent/members/new" for 127.0.0.1 at 2013-08-30 19:25:44 +0200 +Processing by Adherent::MembersController#new as HTML + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/members/_form.html.erb (10.9ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 27ms (Views: 19.5ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (2.7ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (1.9ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (3.7ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (5.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 20) LIMIT 1 +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Member Exists (2.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 20) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 20], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 20) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh001' AND "adherent_members"."organism_id" = 20) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_1"], ["number", "Adh001"], ["organism_id", 20], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 20) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh002' AND "adherent_members"."organism_id" = 20) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_2"], ["number", "Adh002"], ["organism_id", 20], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 20) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh003' AND "adherent_members"."organism_id" = 20) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_3"], ["number", "Adh003"], ["organism_id", 20], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (5.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 20) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh004' AND "adherent_members"."organism_id" = 20) LIMIT 1 + SQL (0.3ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_4"], ["number", "Adh004"], ["organism_id", 20], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" +Started GET "/adherent/members" for 127.0.0.1 at 2013-08-30 19:25:45 +0200 +Processing by Adherent::MembersController#index as HTML + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (4.1ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."organism_id" = 20 +  (4.3ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 48 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.4ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 48 LIMIT 1 +  (0.3ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 49 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (2.6ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 49 LIMIT 1 +  (4.4ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 50 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (1.1ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 50 LIMIT 1 +  (0.6ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 51 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (2.1ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 51 LIMIT 1 +  (6.8ms) SELECT COUNT(*) AS count_all, adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount, adherent_adhesions.id AS adherent_adhesions_id FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 52 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date + Adherent::Coord Load (0.3ms) SELECT "adherent_coords".* FROM "adherent_coords" WHERE "adherent_coords"."member_id" = 52 LIMIT 1 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 73ms (Views: 42.8ms | ActiveRecord: 27.5ms) + Adherent::Member Load (4.8ms) SELECT "adherent_members".* FROM "adherent_members" LIMIT 1 +Started GET "/adherent/members/48/edit" for 127.0.0.1 at 2013-08-30 19:25:45 +0200 +Processing by Adherent::MembersController#edit as HTML + Parameters: {"id"=>"48"} + Organism Load (0.8ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.3ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "48"]] + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/members/_form.html.erb (7.7ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 20ms (Views: 12.5ms | ActiveRecord: 1.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Adherent::AllpaymentsController#index as HTML + Organism Load (2.0ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.3ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Payment Load (0.9ms) SELECT "adherent_payments".* FROM "adherent_payments" INNER JOIN "adherent_members" ON "adherent_payments"."member_id" = "adherent_members"."id" WHERE "adherent_members"."organism_id" = 21 +Completed 200 OK in 366ms (Views: 95.3ms | ActiveRecord: 5.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Adherent::Adhesion Load (0.6ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" IS NULL ORDER BY to_date DESC LIMIT 1 +  (0.1ms) ROLLBACK +  (0.4ms) BEGIN + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" IS NULL ORDER BY to_date DESC LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" IS NULL ORDER BY to_date DESC LIMIT 1 +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh 001' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["forname", "Jules"], ["name", "Dupont"], ["number", "Adh 001"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 53 + Adherent::Adhesion Load (0.2ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 53 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.9ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a218d24,'0.2666E2',18(45)>], ["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 53], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.8ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 53 + Adherent::Adhesion Load (4.9ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 53 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) ROLLBACK +  (0.6ms) BEGIN +  (0.7ms) SAVEPOINT active_record_1 + Adherent::Member Exists (2.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh 001' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (2.8ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["forname", "Jules"], ["name", "Dupont"], ["number", "Adh 001"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 54 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 54 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a559740,'0.2666E2',18(45)>], ["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 54], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 54 + Adherent::Adhesion Load (1.8ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 54 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.1ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh 001' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["forname", "Jules"], ["name", "Dupont"], ["number", "Adh 001"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 55 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 55 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a705260,'0.2666E2',18(45)>], ["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 55], ["to_date", Fri, 29 Aug 2014], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 55 + Adherent::Adhesion Load (0.1ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 55 ORDER BY to_date DESC LIMIT 1 +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh 001' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.0ms) ROLLBACK +  (0.1ms) BEGIN + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" IS NULL AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK +  (1.2ms) BEGIN + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh 001' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh 001' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh 001' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["forname", "Jules"], ["name", "Dupont"], ["number", "Adh 001"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh 001' AND "adherent_members"."organism_id" = 2) LIMIT 1 +  (0.1ms) ROLLBACK +  (0.0ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh 001' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["forname", "Jules"], ["name", "Dupont"], ["number", "Adh 001"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.0ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh 001' AND "adherent_members"."organism_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh 001' AND "adherent_members"."organism_id" = 1) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", Tue, 06 Jun 1944], ["created_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00], ["forname", "Jules"], ["name", "Dupont"], ["number", "Adh 001"], ["organism_id", 1], ["updated_at", Fri, 30 Aug 2013 17:25:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (63.0ms) ROLLBACK +  (0.2ms) BEGIN + Organism Load (0.8ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 22) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 22) LIMIT 1 + SQL (0.5ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 22], ["updated_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.8ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a8d1990,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 59], ["to_date", Mon, 30 Sep 2013], ["updated_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/59/adhesions" for 127.0.0.1 at 2013-08-30 19:25:46 +0200 +Processing by Adherent::AdhesionsController#index as HTML + Parameters: {"member_id"=>"59"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "59"]] +  (0.3ms) SELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 59 + Adherent::Adhesion Load (0.5ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 59 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 5 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 5 + Rendered layouts/adherent/_header.html.haml (0.0ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 15ms (Views: 9.5ms | ActiveRecord: 1.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.0ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.6ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 23) LIMIT 1 +  (0.3ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.2ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 23) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 23], ["updated_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:a9c8f38,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 60], ["to_date", Mon, 30 Sep 2013], ["updated_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/60/adhesions" for 127.0.0.1 at 2013-08-30 19:25:46 +0200 +Processing by Adherent::AdhesionsController#index as HTML + Parameters: {"member_id"=>"60"} + Organism Load (0.9ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "60"]] +  (0.4ms) SELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 60 + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 60 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 6 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 6 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 16ms (Views: 9.1ms | ActiveRecord: 2.2ms) +Started GET "/adherent/members/60/payments/new" for 127.0.0.1 at 2013-08-30 19:25:46 +0200 +Processing by Adherent::PaymentsController#new as HTML + Parameters: {"member_id"=>"60"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "60"]] + Adherent::Adhesion Load (0.5ms) SELECT adherent_adhesions.*, sum(adherent_reglements.amount) as reglements_amount FROM "adherent_adhesions" left join adherent_reglements on adherent_reglements.adhesion_id = adherent_adhesions.id WHERE "adherent_adhesions"."member_id" = 60 GROUP BY adherent_adhesions.id HAVING adherent_adhesions.amount > 0 AND (adherent_adhesions.amount > sum(adherent_reglements.amount) OR sum(adherent_reglements.amount) IS NULL) ORDER BY to_date +  (0.2ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 6 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/payments/_form.html.haml (6.1ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 16ms (Views: 9.8ms | ActiveRecord: 1.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN + Organism Load (0.1ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00]] +  (1.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (1.8ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 24) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (2.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 24) LIMIT 1 + SQL (1.0ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 24], ["updated_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:ab37734,'0.87654E3',18(45)>], ["created_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00], ["from_date", Fri, 30 Aug 2013], ["member_id", 61], ["to_date", Mon, 30 Sep 2013], ["updated_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/adherent/members/61/adhesions" for 127.0.0.1 at 2013-08-30 19:25:46 +0200 +Processing by Adherent::AdhesionsController#index as HTML + Parameters: {"member_id"=>"61"} + Organism Load (0.5ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "61"]] +  (0.2ms) SELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 61 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 61 +  (0.3ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 7 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 7 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.2ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 1.5ms) +Started GET "/adherent/members/61/adhesions/7/edit" for 127.0.0.1 at 2013-08-30 19:25:46 +0200 +Processing by Adherent::AdhesionsController#edit as HTML + Parameters: {"member_id"=>"61", "id"=>"7"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "61"]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 61 AND "adherent_adhesions"."id" = $1 LIMIT 1 [["id", "7"]] + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (5.5ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 13ms (Views: 9.4ms | ActiveRecord: 1.0ms) +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN + Organism Load (0.2ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.1ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (1.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 25) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.3ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 25) LIMIT 1 + SQL (0.4ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 25], ["updated_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" +Started GET "/adherent/members/62/adhesions/new" for 127.0.0.1 at 2013-08-30 19:25:46 +0200 +Processing by Adherent::AdhesionsController#new as HTML + Parameters: {"member_id"=>"62"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "62"]] + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 62 + Adherent::Adhesion Load (0.9ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 62 ORDER BY to_date DESC LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (4.5ms) + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.7ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 16ms (Views: 10.4ms | ActiveRecord: 1.6ms) +  (0.3ms) SELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 62 +Started POST "/adherent/members/62/adhesions" for 127.0.0.1 at 2013-08-30 19:25:46 +0200 +Processing by Adherent::AdhesionsController#create as HTML + Parameters: {"utf8"=>"✓", "adhesion"=>{"from_date"=>"01/08/2013", "to_date"=>"31/07/2014", "amount"=>"150.25"}, "commit"=>"Enregistrer", "member_id"=>"62"} + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "62"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "adherent_adhesions" ("amount", "created_at", "from_date", "member_id", "to_date", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", #<BigDecimal:adc698c,'0.15025E3',18(18)>], ["created_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00], ["from_date", Thu, 01 Aug 2013], ["member_id", 62], ["to_date", Thu, 31 Jul 2014], ["updated_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/adherent/members/62/adhesions +Completed 302 Found in 7ms (ActiveRecord: 1.0ms) +Started GET "/adherent/members/62/adhesions" for 127.0.0.1 at 2013-08-30 19:25:46 +0200 +Processing by Adherent::AdhesionsController#index as HTML + Parameters: {"member_id"=>"62"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "62"]] +  (0.2ms) SELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 62 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 62 +  (0.4ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 8 + CACHE (0.0ms) SELECT SUM("adherent_reglements"."amount") AS sum_id FROM "adherent_reglements" WHERE "adherent_reglements"."adhesion_id" = 8 + Rendered layouts/adherent/_header.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 13ms (Views: 8.6ms | ActiveRecord: 1.5ms) +  (0.4ms) SELECT COUNT(*) FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 62 +  (0.3ms) ROLLBACK +  (0.0ms) BEGIN + Organism Load (0.3ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "organisms" ("created_at", "status", "title", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00], ["status", nil], ["title", "Mon association"], ["updated_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 26) LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Adherent::Member Exists (0.4ms) SELECT 1 AS one FROM "adherent_members" WHERE ("adherent_members"."number" = 'Adh000' AND "adherent_members"."organism_id" = 26) LIMIT 1 + SQL (1.1ms) INSERT INTO "adherent_members" ("birthdate", "created_at", "forname", "name", "number", "organism_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["birthdate", nil], ["created_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00], ["forname", "le prénom"], ["name", "Nom_0"], ["number", "Adh000"], ["organism_id", 26], ["updated_at", Fri, 30 Aug 2013 17:25:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members"  +Started GET "/adherent/members/63/adhesions/new" for 127.0.0.1 at 2013-08-30 19:25:46 +0200 +Processing by Adherent::AdhesionsController#new as HTML + Parameters: {"member_id"=>"63"} + Organism Load (0.4ms) SELECT "organisms".* FROM "organisms" WHERE "organisms"."title" = 'Mon association' LIMIT 1 + Adherent::Member Load (0.2ms) SELECT "adherent_members".* FROM "adherent_members" WHERE "adherent_members"."id" = $1 LIMIT 1 [["id", "63"]] + Adherent::Adhesion Load (0.4ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 63 + Adherent::Adhesion Load (0.3ms) SELECT "adherent_adhesions".* FROM "adherent_adhesions" WHERE "adherent_adhesions"."member_id" = 63 ORDER BY to_date DESC LIMIT 1 + Rendered /home/jcl/rails_project/Adherent/app/views/adherent/adhesions/_form.html.haml (6.9ms) + Rendered layouts/adherent/_header.html.haml (0.0ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_flash_partial.html.haml (0.1ms) + Rendered /home/jcl/rails_project/Adherent/app/views/layouts/adherent/_footer.html.haml (0.1ms) +Completed 200 OK in 16ms (Views: 9.6ms | ActiveRecord: 1.2ms) +  (0.1ms) ROLLBACK