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
activerecord.errors.models.content.attributes.topic.invalid | |
activerecord.errors.models.content.invalid | |
activerecord.errors.messages.invalid | |
# with STI | |
activerecord.errors.models.post.attributes.topic.invalid | |
activerecord.errors.models.post.invalid | |
activerecord.errors.models.content.attributes.topic.invalid | |
activerecord.errors.models.content.invalid | |
activerecord.errors.messages.invalid |
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
require "rubygems" | |
require "rbench" | |
RBench.run(500) do | |
report("memoed") do | |
Foo.memoed("hello") | |
end | |
report("unmemoed") do | |
Foo.unmemoed("hello") | |
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
#!/bin/bash | |
# Unattended REE/Passenger installation | |
# Source: http://weblog.brightlight-ict.nl/2008/12/unattended-passenger-ruby-enterprise-installation-on-ubuntu-8/ | |
# 15/03/09 Updated to use latest r.e.e. and passenger 2.1 and rewrote bits thanks to the comments left on my blog. Thanks guys | |
if [ "$(whoami)" != "root" ]; then | |
echo "You need to be root to run this!" | |
exit 2 | |
fi | |
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 a sample YML file from Rails 2.3. The objective is to propose a yml based on this | |
# one which will reduce error messsages duplication, as outline in this post: | |
# | |
# http://groups.google.com/group/rails-i18n/browse_thread/thread/3085a78831ed8fae | |
# | |
# Proposals are available below and also check the forks at the right. | |
en: | |
activerecord: | |
models: | |
admin: "Admin" |