Created
September 25, 2009 22:24
-
-
Save brentmc79/193882 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#my controller action | |
def edit | |
respond_to do |format| | |
format.js {render :partial => "ajax_form", :locals => {:expense => @expense} && return} | |
format.html {raise "boom"} | |
end | |
end | |
#from the log | |
Processing ExpensesController#edit to js (for 127.0.0.1 at 2009-09-25 18:20:50) [GET] | |
Parameters: {"budget_id"=>"12", "id"=>"3"} | |
SQL (0.1ms) SET NAMES 'utf8' | |
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 | |
Budget Columns (1.5ms) SHOW FIELDS FROM `budgets` | |
Budget Load (0.5ms) SELECT * FROM `budgets` WHERE (`budgets`.`id` = 12) | |
Expense Columns (1.6ms) SHOW FIELDS FROM `expenses` | |
Expense Load (0.2ms) SELECT * FROM `expenses` WHERE (`expenses`.`id` = 3 AND (`expenses`.budget_id = 12)) | |
Rendering template within layouts/expenses | |
Rendering expenses/edit | |
Completed in 35ms (View: 17, DB: 4) | 200 OK [http://localhost/budgets/12/expenses/3/edit?format=js] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment