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
| #config/initializers/conversions.rb | |
| Time::Conversions::DATE_FORMATS.update(:event => '%I:%M%p') | |
| Time.now.to_s(:event) #=> "03:23PM" |
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
| =link_to "http://google.co.in" do | |
| Hello | |
| <i class="icon-search icon-white">Unni</i> | |
| <b> World </b> |
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
| Customer.stub(:find).with(:all) { data_array } |
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
| rvm get head && rvm reload | |
| chmod +x $rvm_path/hooks/after_cd_bundler | |
| cd /path/to/project | |
| bundle install --binstubs=./bundler_stubs |
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
| rvm use 1.9.1 | |
| gem install passenger | |
| cd /var/rails/staging_sites/Zed | |
| passenger start -a 127.0.0.1 -p 3000 -d | |
| <VirtualHost *:80> | |
| ServerName staging.zed.bangthetable.com | |
| ProxyPass / http://127.0.0.1:3000/ | |
| ProxyPassReverse / http://127.0.0.1:3000/ | |
| </VirtualHost> |
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
| http://hocuspokus.net/2010/03/installing-rmagick-on-snow-leopard-leopard/ |
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
| http://wonko.com/post/how-to-install-the-mysqlruby-gem-on-mac-os-x-leopard |
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
| def test_method | |
| puts __method__ | |
| end |
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
| rvm rubygems 1.3.5 |
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
| sudo gem update --system 1.3.5 |