This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
# Models | |
class Child | |
has_many :relationships | |
end | |
class RelationType | |
has_many :relationships | |
end |
{:input=>:s3, :"input_params[aws_access_key]"=>"AKIAINB7DG747Z3YIZLA", :"input_params[aws_secret_key]"=>"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", :"input_params[aws_bucket]"=>"pb_test_uploads/finaltesting", :"input_params[aws_path]"=>"final/28_chairman_meow/4_full_chairman_meow.wav", :output=>:s3, :"output_params[aws_access_key]"=>"AKIAINB7DG747Z3YIZLA", :"output_params[aws_secret_key]"=>"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", :"output_params[aws_bucket]"=>"pb_test_uploads/finaltesting", :"output_params[aws_path]"=>"preview/28_chairman_meow/4_full_chairman_meow.mp3", :callback_url=>"http://3j2f.localtunnel.com/callbacks/28/137/processing_complete", :format=>:json, :processing=>:async, :preview_id=>1, :output_format=>:mp3, :target_bitrate=>44100, :volume_min_threshold=>0.025, :reduction_factor=>2.61, :vo_short=>false} |
{"status":"error","errors":{"error":"Application error\n#0 \/usr\/local\/zend\/share\/ZendFramework\/library\/Zend\/View\/Abstract.php(884): Zend_View_Abstract->_script('response.phtml')\n#1 \/usr\/local\/zend\/share\/ZendFramework\/library\/Zend\/Controller\/Action\/Helper\/ViewRenderer.php(900): Zend_View_Abstract->render('response.phtml')\n#2 \/usr\/local\/zend\/share\/ZendFramework\/library\/Zend\/Controller\/Action\/Helper\/ViewRenderer.php(921): Zend_Controller_Action_Helper_ViewRenderer->renderScript('response.phtml', NULL)\n#3 \/usr\/local\/zend\/share\/ZendFramework\/library\/Zend\/Controller\/Action\/Helper\/ViewRenderer.php(960): Zend_Controller_Action_Helper_ViewRenderer->render()\n#4 \/usr\/local\/zend\/share\/ZendFramework\/library\/Zend\/Controller\/Action\/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()\n#5 \/usr\/local\/zend\/share\/ZendFramework\/library\/Zend\/Controller\/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()\n#6 \/usr\/ |
d; | |
} | |
.gallery-slideshow-caption { | |
width:300px; | |
height:298px; | |
float: right; | |
left:880px; | |
color:#fff; | |
background: $red; |
$(document).ready(function() { | |
// page is ready, do things here | |
}) | |
$(document).on('click','#gallery img',function() { | |
// click handler here | |
}) |
# config/application.rb | |
module YourApplication | |
class Application < Rails::Application | |
config.autoload_paths += %W(#{config.root}/lib) | |
end | |
end |
MyApp::Application.configure do | |
config.cache_classes = true | |
config.consider_all_requests_local = false | |
config.action_controller.perform_caching = true | |
config.action_dispatch.x_sendfile_header = "X-Sendfile" | |
config.cache_store = :dalli_store |
has_many :child_connections, :class_name => 'Connection', :foreign_key => 'from_id' | |
has_many :parent_connections, :class_name => 'Connection', :foreign_key => 'to_id', :dependent => :destroy | |
has_many :children, :through => :child_connections, :source => :to | |
has_many :parents, :through => :parent_connections, :source => :from |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer