Month: April 2012

  • Browse Folders as Root – Ubuntu

    Just a quick post on how to browse folders as root in Ubuntu. Simply enter the following: chris@chris-VirtualBox:/etc$ sudo nautilus Once you’re in there you can view hidden files by pressing Ctrl+H. If, like me, you’re coming from a Windows background – this may make things a little easier. Leave a comment below if you…

  • sqlite3.h is missing – Ruby on Rails

    Just an error I ran into while running bundle install on a new ubuntu virtual: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb checking for sqlite3.h… no sqlite3.h is missing. Try ‘port install sqlite3 +universal’ or ‘yum install sqlite-devel’ and check your shared library search path (the location where your sqlite3 shared library…

  • Could not find a JavaScript Runtime – Ruby on Rails

    Ran into the following issue today starting a new app on a virtual Ubuntu box: Could not find a JavaScript runtime Thankfully there’s a quick fix, simply install nodejs: chris@chris-VirtualBox:~/Desktop$ sudo apt-get install nodejs Reading package lists… Done Building dependency tree Reading state information… Done The following packages were automatically installed and are no longer…

  • undefined method `render_with_scope’ (Devise) – Ruby on Rails

    I ran into the following error while trying to implement ReCaptcha with devise: undefined method `render_with_scope’ for # The offending code: class Users::RegistrationsController < Devise::RegistrationsController def create #Verify captcha if verify_recaptcha super else build_resource clean_up_passwords(resource) flash.now[:alert] = "There was an error with the recaptcha code below. Please re-enter the code." render_with_scope :new end end end…

Create a website or blog at WordPress.com