Notes posted by dennyabraham
RSS feed
4 thanks
finding without default scopes in rails 3
if you want to find without default scopes in rails 3 and with_exclusive_scope is giving you protected method errors in controllers, use unscoped for a similar purpose

0 thanks
Useful for mocking out IO methods like #gets and #puts
This class is helpful when testing certain classes of software libraries that are dependent on console input and output, similar to some testing uses of Java’s StringBuffer

0 thanks
output is buffered and will not appear until flush
Output is buffered on most operating systems. To override this behavior, force the stdout or other io to sync
STDOUT.sync = true