-
Enums in ActiveRecord 4.1 and options_for_select
Update: This StackOverflow answer provides a better way to use a drop-down with enums. I could’ve sworn I tried that, but maybe not. I discovered something interesting about the way ActiveRecord 4.1 enums work. If you’re trying to use them with options_for_select, you may need to do some little acrobatics with your enums. Assume your…
-
Git wrapper for vim: fugitive.vim
Today’s browsing through “plugins that I haven’t made good enough use of” brings me to vim-fugitive: :Gstatus pulls git status output into a vim split window. Pressing – on the line that a file is listed on either adds or removes a file from staging, and :Gcommit commits it. :Gdiff opens a vertical split next…
-
Thanks for Making it Unnecessarily Hard to Get a Harry Potter Book on My Daughter’s Kindle
Exclusive Dealers Apparently, JK Rowling made a deal with Sony to exclusively sell Harry Potter e-books on the Sony e-book through the Pottermore site, through January 2012. What I found out today was that I still had to go to that site in order to buy any e-book version of the Harry Potter books. That posed a major…