Hi,
Have an update_row action that does not work as expected. The log
shows the code below for the action, and the update_row is called -
after the @record has been set.
The Browser just shows a grayed action in AS (The action is triggered
by an ActionLink). No updates - and the link can not be hit again.
What did I miss ??
Processing DonationsController#payment_reminder (for 127.0.0.1 at
2010-07-22 13:46:39) [GET]
Parameters: {"action"=>"payment_reminder", "_method"=>"get",
"adapter"=>"_list_inline_adapter", "id"=>"2992",
"controller"=>"donations"}
User Load (31.7ms) SELECT * FROM "users" WHERE ("users"."id" = 1)
LIMIT 1
Donation Load (5.0ms) SELECT * FROM "donations" WHERE
("donations"."id" = 2992)
SQL (0.6ms) BEGIN
Donation Update (1.2ms) UPDATE "donations" SET "updated_at" =
'2010-07-22 13:46:39.664292', "age" = -3 WHERE "id" = 2992
SQL (1.9ms) COMMIT
SQL (0.8ms) BEGIN
SQL (2.5ms) INSERT INTO "delayed_jobs" ("failed_at", "locked_by",
"created_at", "handler", "updated_at", "priority", "run_at",
"attempts", "locked_at", "last_error") VALUES(NULL, NULL, '2010-07-22
13:46:39.696894', '--- !ruby/struct:Delayed::PerformableMethod
object: CLASS:UserMailer
method: :deliver_payment_reminder
args:
- AR:Donation:2992
', '2010-07-22 13:46:39.696894', 0, '2010-07-22 13:46:39.696478', 0,
NULL, NULL) RETURNING "id"
SQL (1.1ms) COMMIT
Rendering update_row
SQL (1.6ms) SELECT count(*) AS count_all FROM "matching_grants"
WHERE ("matching_grants".donation_id = 2992)
SQL (1.3ms) SELECT count(*) AS count_all FROM "installments" WHERE
("installments".donation_id = 2992)
Payment Load (11.5ms) SELECT * FROM "payments" WHERE
("payments".donation_id = 2992)
PaymentMethod Load (3.3ms) SELECT * FROM "payment_methods" WHERE
("payment_methods"."id" = 11)
Donor Load (10.5ms) SELECT * FROM "donors" WHERE ("donors"."id" =
2992)
Campaign Load (6.8ms) SELECT * FROM "campaigns" WHERE
("campaigns"."id" = 376)
Rendered _list_record_columns (327.3ms)
Rendered _list_actions (8.5ms)
SQL (8.0ms) SELECT sum("donations".amount) AS sum_amount FROM
"donations"
Rendered _list_calculations (13.2ms)
Rendered _list_record (385.1ms)
Rendered _messages (1.1ms)
Rendered _list_inline_adapter (10.4ms)
Completed in 566ms (View: 17, DB: 0) | 200 OK [http://localhost/
donations/payment_reminder/2992?
_method=get&adapter=_list_inline_adapter]
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.