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
>> callback = Addressable::URI.parse("http://unni.com") | |
=> #<Addressable::URI:0x810ab0b4 URI:http://unni.com> | |
>> callback.query_values = callback.query_values ? callback.query_values.merge({"angry" => "birds"}) : {"angry" => "birds"} | |
=> {"angry"=>"birds"} | |
>> callback.to_s | |
=> "http://unni.com?angry=birds" | |
>> callback = Addressable::URI.parse("http://unni.com?nikhil=krishna") | |
=> #<Addressable::URI:0x8109fc8c URI:http://unni.com?nikhil=krishna> | |
>> callback.query_values = callback.query_values ? callback.query_values.merge({"angry" => "birds"}) : {"angry" => "birds"} |
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
sudo gem update --system 1.3.5 |
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
rvm rubygems 1.3.5 |
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
def test_method | |
puts __method__ | |
end |
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
http://wonko.com/post/how-to-install-the-mysqlruby-gem-on-mac-os-x-leopard |
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
http://hocuspokus.net/2010/03/installing-rmagick-on-snow-leopard-leopard/ |
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
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 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 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 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> |