This file contains 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
.DS_Store | |
log/*.log | |
tmp/attachment_fu/[^.]* | |
tmp/cache/[^.]* | |
tmp/pids/[^.]* | |
tmp/sessions/[^.]* | |
tmp/sockets/[^.]* | |
public/flv/[^.]* |
This file contains 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
git submodule add git://github.com/rails/acts_as_list.git vendor/plugins/acts_as_list | |
git submodule add git://github.com/nex3/haml.git vendor/plugins/haml | |
git submodule add git://github.com/rails/acts_as_tree.git vendor/plugins/acts_as_tree | |
git submodule add git@github.com:bilson/simple_form_mailer.git vendor/plugins/simple_form_mailer | |
git submodule add git@github.com:bilson/dumpimp.git vendor/plugins/dumpimp | |
git submodule add git://github.com/rails/rails.git vendor/rails | |
git submodule add git://github.com/thoughtbot/paperclip.git vendor/plugins/paperclip | |
git submodule add git@github.com:bilson/basic_haml_generators.git vendor/plugins/basic_haml_generators | |
git submodule add git://github.com/rubyist/aasm.git vendor/plugins/aasm | |
git submodule add git://github.com/technoweenie/restful-authentication.git vendor/plugins/restful_authentication |
This file contains 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
/* This fixes the problem with right columns being pushed below in ie6*/ | |
/* ----------------------------------------------------------------------- | |
Blueprint CSS Framework 0.7.1 | |
http://blueprintcss.googlecode.com | |
* Copyright (c) 2007-2008. See LICENSE for more info. | |
* See README for instructions on how to use Blueprint. | |
* For credits and origins, see AUTHORS. |
This file contains 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
# JRAILS init file - for noConflict | |
# uncomment to use jQuery.noConflict() | |
ActionView::Helpers::PrototypeHelper::JQUERY_VAR = '$j' | |
#ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES = ['jquery','jquery-ui','jrails'] | |
#ActionView::Helpers::AssetTagHelper::reset_javascript_include_default | |
require 'jrails' |
This file contains 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
Substruct - http://code.google.com/p/substruct/ | |
Spree - spreehq.org | |
Minimal Cart - http://github.com/jbresnik/minimal-cart/tree/master | |
FoxyCart - http://www.foxycart.com/ |
This file contains 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
# make'em pretty colors | |
export PS1='\[\033[0;35m\]\h\[\033[0;33m\] \w\[\033[00m\]: ' | |
# show current Git branch | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
function proml { | |
local BLUE="\[\033[0;34m\]" |
This file contains 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
// outside of this you can refer to jQuery as $j | |
$j = jQuery.noConflict(); | |
jQuery(document).ready(function($){ | |
// your stuff goes here! | |
// just use $ to refer to jQuery from within here | |
}); |
This file contains 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
In layout file below linked stylesheets/js files. Note: This is HAML... | |
:javascript | |
jQuery(function($){ | |
#{yield :onload} | |
}); | |
In view files. Again HAML... |
This file contains 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
class ApplicationController < ActionController::Base | |
sublayout '2col' | |
end | |
class PagesController < ApplicationController | |
sublayout '3col' | |
end | |
class AdminController < ApplicationController | |
sublayout '1col' |
This file contains 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
irb(main):001:0> thing | |
NameError: undefined local variable or method `thing' for main:Object | |
from (irb):1 | |
irb(main):002:0> defined? thing | |
=> nil | |
irb(main):003:0> thing = thing | |
=> nil | |
irb(main):004:0> thing | |
=> nil | |
irb(main):005:0> defined? thing |
OlderNewer