Skip to content

Instantly share code, notes, and snippets.

View matfiz's full-sized avatar

Grzegorz Brzezinka matfiz

View GitHub Profile
@simonjefford
simonjefford / firebug_logger.rb
Created October 14, 2009 13:20
My CodeRack competition entry
# See also http://github.com/simonjefford/rack_firebug_logger
# for this middleware + tests + a rails plugin
class FirebugLogger
def initialize(app, options = {})
@app = app
@options = options
end
def call(env)
dup._call(env)
@nicalpi
nicalpi / application.js
Created May 12, 2009 10:25
my default application.js configuration to work with Jquery and Rails
/*
Jquery and Rails powered default application.js
Easy Ajax replacement for remote_functions and ajax_form based on class name
All actions will reply to the .js format
Unostrusive, will only works if Javascript enabled, if not, respond to an HTML as a normal link
respond_to do |format|
format.html
format.js {render :layout => false}
end
*/