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
# from http://pastie.org/426366 | |
require 'hpricot' | |
module Webby | |
class Renderer | |
attr_reader :page | |
end | |
module Filters | |
# To use: add relpath to the end of the list of filters in the layout. It won't |
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
# by Joel VanderWerf | |
require 'hpricot' | |
module Webby | |
class Renderer | |
attr_reader :page | |
end | |
module Filters |
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
#!/bin/sh | |
# braid plugin install | |
# usage: braidpi git://github.com/moo/boo.git | |
PLUGIN=$1 | |
braid add -p "$PLUGIN" && ruby "vendor/plugins/`basename -s .git $PLUGIN`/install.rb" |
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
#!/usr/bin/env ruby -w | |
## | |
# By Mike Clark | |
# | |
# From http://www.pragmaticautomation.com/cgi-bin/pragauto.cgi/Monitor/StakingOutFileChanges.rdoc | |
# | |
# Watches files and runs a command when any of them are modified. | |
# | |
# Can use Ruby's Dir[] to get file glob. Quote your args to take advantage of this. |
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
# todo |
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
commit 59efeb32bef98a97000ffe81baec6c434ab32647 | |
Author: Cristi Balan <[email protected]> | |
Date: Tue Oct 21 19:50:04 2008 +0300 | |
unscrew teh app. <3 railsrumble organizers | |
diff --git a/app/controllers/conferences_controller.rb b/app/controllers/conferences_controller.rb | |
index f99efaa..edeb94b 100644 | |
--- a/app/controllers/conferences_controller.rb | |
+++ b/app/controllers/conferences_controller.rb |
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
# Para salvar a altura e largura das imagens enviadas pelo plugin paperclip, utilize o callback abaixo | |
# | |
# class Document < ActiveRecord::Base | |
# | |
# has_attached_file :document, :styles => { :medium => "300x300>" } | |
# | |
# before_save :save_dimensions | |
# | |
# def save_dimensions | |
# if document.image? |
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
--- | |
vendor/plugins/factory_girl: | |
squashed: true | |
url: git://github.com/thoughtbot/factory_girl.git | |
type: git | |
revision: c88fc365179a0d92a42fd7ed08edb055427f90d4 | |
branch: master | |
remote: braid/vendor/plugins/factory-girl | |
vendor/plugins/forgot_password: | |
squashed: true |
NewerOlder