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
# cat, dog = Cat.new, Dog.new | |
# cat.friends << dog | |
# cat.save | |
# => false | |
# cat.errors | |
# #<ActiveRecord::Errors ... @errors={"dog" => "is not valid"}> | |
# cat.errors << dog.errors | |
# cat.errors | |
# #<ActiveRecord::Errors ... @errors={"dog" => "is not valid", "bark" => "is not bigger than bite"} |
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 | |
# To install: | |
# about:config | |
# create a new boolean network.protocol-handler.external.txmt with value true | |
# create a new string network.protocol-handler.app.txmt with value path to the script | |
require 'rubygems' | |
require 'cgi' | |
require 'uri' |
NewerOlder