-
Bundler gave the error “Could not find {some gem} in any of the sources”, processing Gemfile in wrong directory
Problem I was persistently getting the error: Bundler gave the error “Could not find json-1.8.1 in any of the sources” while processing “/Users/tpowell/projects/some_other_project/Gemfile”. Perhaps you forgot to run “bundle install”? While trying to fix a bug in paperclip_database that was similar to Paperclip Gerenator – No Method Error in paperclip I eventually found an issue…
-
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…