ajax.js
$("#resize-image-dialog").dialog({
autoOpen: false,
height: 300,
width: 350,
modal: false,
buttons: {
'Resize': function() {
var dataString = {
"width": $('#resize-image-dialog input#width').val(),
"height": $('#resize-image-dialog input#height').val()
This file has been truncated. show original
application.js
$.ajaxSetup({
'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")}
});
$(function() {
// UJS authenticity token fix: add the authenticy_token parameter
// expected by any Rails POST request.
$(document).ajaxSend(function(event, request, settings) {
// do nothing if this is a GET request. Rails doesn't need
// the authenticity token, and IE converts the request method
This file has been truncated. show original
development log.txt
Processing ImagesController#show to js (for 127.0.0.1 at 2010-10-21 13:22:28) [GET]
Parameters: {"format"=>"js", "action"=>"show", "id"=>"42", "height"=>"1", "controller"=>"images", "width"=>"1"}
Domain Load (1.1ms) SELECT * FROM "public"."domains" WHERE ("public"."domains"."name" = 'get.stiltify.dev') LIMIT 1
Site Load (0.7ms) SELECT * FROM "public"."sites" WHERE ("public"."sites"."subdomain" = 'get') LIMIT 1
SQL (0.3ms) SET search_path TO get,public
Image Load (0.7ms) SELECT * FROM "images" WHERE ("images"."id" = 42)
User Load (1.0ms) SELECT * FROM "public"."users" WHERE ("public"."users"."id" = '1') LIMIT 1
SQL (0.3ms) BEGIN
User Update (0.6ms) UPDATE "public"."users" SET "updated_at" = '2010-10-21 05:22:28.574488', "perishable_token" = 'b8ycnlrYKdvW1Vd1mUDa', "last_request_at" = '2010-10-21 05:22:28.573452' WHERE "id" = 1
SQL (14.9ms) COMMIT
This file has been truncated. show original
There are more than three files. show original