Code, Strings, and Keys

    • About Thomas Powell
    • Account
    • It’s been [0] days since [program] last updated
    • Login
    • Password Reset
    • Pianist / Accompanist / Music Director Resume
    • Reading List 2025
    • Register
    • Running Gear – Shoes, Treadmill, and Bandages
    • Site Map
Illustration of a bird flying.
  • method_missing: undefined method `increment_open_transactions` database_cleaner

    When using database_cleaner (0.9.1) with rails (4.1.0) {my home path}/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/activerecord-4.1.0/lib/active_record/dynamic_matchers.rb:26:in `method_missing’: undefined method `increment_open_transactions’ for ActiveRecord::Base:Class (NoMethodError) from {my home path}/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/database_cleaner-0.9.1/lib/database_cleaner/active_record/transaction.rb:13:in `start’ from {my home path}/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/database_cleaner-0.9.1/lib/database_cleaner/base.rb:73:in `start’ from {my home path}/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/database_cleaner-0.9.1/lib/database_cleaner/configuration.rb:75:in `block in start’ from {my home path}/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/database_cleaner-0.9.1/lib/database_cleaner/configuration.rb:75:in `each’ from {my home path}/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/database_cleaner-0.9.1/lib/database_cleaner/configuration.rb:75:in `start’ Somehow we were using an old version of database_cleaner, gem “database_cleaner”,…

    April 22, 2014
  • Getting Fast File Finder Functionality Out of Vim

    Problem: All of these other editors have handy functionality to quickly find a file Solution: ctrlp.vim is a plugin that allows you to do that. The plugin’s page has full instructions, but the most important detail after work done in yesterday’s post to declutter my vim windows: After pressing Ctrl-P, use <c-t> or <c-v>, <c-x>…

    April 18, 2014
  • Avoiding Scattered Vim Windows in MacVim

    Problem: I open too many windows in vim, which get buried in the clutter on my Mac OS X desktop. Solution: Open files in MacVim in an existing window using a tab mvim –remote-tab new_file_to_open.rb Open files in MacVim in an existing window using a split mvim –remote-send “:split `pwd`/new_file_to_open.rb<CR>” I packaged this in a zsh…

    April 17, 2014
←Previous Page
1 … 77 78 79 80 81 … 312
Next Page→

Code, Strings, and Keys

Proudly powered by WordPress