Hi
Updated to Master Branch and latest checkin to get my Join capabilities
back.
Now I'm short my export capabilities - but only for a short time.
I have an action_link action that uses the update_row JS action to
repaint the part of the table that was modified by this action.
The function works and does it thing, but it causes a routing error in
the log, and nothing gets repainted in the UI.
Any insights ?
The validated method stripped down:
def validated
@record = beginning_of_chain.find(params[:id])
.....
respond_to do |format|
format.html { redirect_to :action => :index }
format.js { render :action => 'update_row' }
end
end
Processing DonationsController#validated (for 192.168.0.209 at
2010-03-16 00:03:
39) [GET]
Parameters: {"action"=>"validated", "_method"=>"get",
"adapter"=>"_list_inline
_adapter", "id"=>"398", "controller"=>"donations"}
^[[4;35;1mUser Load (0.3ms)^[[0m ^[[0mSELECT * FROM `users` WHERE
(`users`.`
id` = 2) LIMIT 1^[[0m
^[[4;36;1mDonation Load (0.1ms)^[[0m ^[[0;1mSELECT * FROM
`donations` WHERE
(`donations`.`id` = 398) ^[[0m
^[[4;35;1mCACHE (0.0ms)^[[0m ^[[0mSELECT * FROM `donations` WHERE
(`donation
s`.`id` = 398) ^[[0m
^[[4;36;1mPayment Load (0.4ms)^[[0m ^[[0;1mSELECT * FROM `payments`
WHERE (`
payments`.donation_id = 398) ^[[0m
^[[4;35;1mInstallment Load (0.1ms)^[[0m ^[[0mSELECT * FROM
`installments` WH
ERE (`installments`.donation_id = 398) ^[[0m
^[[4;36;1mSQL (0.0ms)^[[0m ^[[0;1mBEGIN^[[0m
^[[4;35;1mSQL (0.0ms)^[[0m ^[[0mCOMMIT^[[0m
^[[4;36;1mUser Load (0.2ms)^[[0m ^[[0;1mSELECT * FROM `users` WHERE
(`users`
.`id` = 3) ^[[0m
^[[4;35;1mCampaign Load (0.1ms)^[[0m ^[[0mSELECT * FROM `campaigns`
WHERE (`
campaigns`.`id` = 1) ^[[0m
^[[4;36;1mCACHE (0.0ms)^[[0m ^[[0;1mSELECT * FROM `users` WHERE
(`users`.`id
` = 3) ^[[0m
^[[4;35;1mCACHE (0.0ms)^[[0m ^[[0mSELECT * FROM `campaigns` WHERE
(`campaign
s`.`id` = 1) ^[[0m
<removed email output >
Rendering update_row <<<<< ************************
^[[4;36;1mMatchingGrant Columns (0.7ms)^[[0m ^[[0;1mSHOW FIELDS
FROM `matching_grants`^[[0m
^[[4;35;1mSQL (0.2ms)^[[0m ^[[0mSELECT count(*) AS count_all FROM
`matching_grants` WHERE (`matching_grants`.donation_id = 398) ^[[0m
^[[4;36;1mMatchingGrant Load (0.1ms)^[[0m ^[[0;1mSELECT * FROM
`matching_grants` WHERE (`matching_grants`.donation_id = 398) LIMIT 4^[[0m
^[[4;35;1mInstallment Columns (0.6ms)^[[0m ^[[0mSHOW FIELDS FROM
`installments`^[[0m
^[[4;36;1mSQL (0.1ms)^[[0m ^[[0;1mSELECT count(*) AS count_all FROM
`installments` WHERE (`installments`.donation_id = 398) ^[[0m
^[[4;35;1mPayment Columns (0.7ms)^[[0m ^[[0mSHOW FIELDS FROM
`payments`^[[0m
^[[4;36;1mSQL (0.3ms)^[[0m ^[[0;1mSELECT count(*) AS count_all FROM
`payments` WHERE (`payments`.donation_id = 398) ^[[0m
^[[4;35;1mCACHE (0.0ms)^[[0m ^[[0mSELECT * FROM `users` WHERE
(`users`.`id` = 3) ^[[0m
Rendered _list_record_columns (17.5ms)
Rendered _list_actions (6.1ms)
^[[4;36;1mSQL (0.2ms)^[[0m ^[[0;1mSELECT sum(`donations`.amount) AS
sum_amount FROM `donations` ^[[0m
Rendered _list_calculations (3.6ms)
Rendered _list_record (41.7ms)
Rendered _messages (1.0ms)
Rendered _list_inline_adapter (153.6ms)
Completed in 30378ms (View: 157, DB: 0) | 200 OK
[http://scs.silikone.com/donations/validated/398?_method=get&adapter=_list_inline_adapter]
^[[4;35;1mSQL (0.1ms)^[[0m ^[[0mSET SQL_AUTO_IS_NULL=0^[[0m
^[[4;36;1mUser Columns (2.5ms)^[[0m ^[[0;1mSHOW FIELDS FROM
`users`^[[0m
Processing ApplicationController#index (for 192.168.0.209 at 2010-03-16
00:04:11
) [GET]
Parameters: {"1268695047\\\""=>nil}
ActionController::RoutingError (No route matches
"/\"/images/active_scaffold/default/indicator.gif" with {:method=>:get}):
passenger (2.2.9) lib/phusion_passenger/rack/request_handler.rb:92:in
`process_request'
passenger (2.2.9)
lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.9)
lib/phusion_passenger/railz/application_spawner.rb:400:in
`start_request_handler'
............
--
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.