Month: June 2012

  • has_secure_password error – Ruby on Rails

    Ran into the following error while using has_secure_password: /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/rubygems_integration.rb:143:in `gem’: bcrypt-ruby is not part of the bundle. Add it to Gemfile. (Gem::LoadError) Thankfully the error is pretty self explanatory, you simply have to add the gem bcrypt-ruby: chris@chris-VirtualBox:~/cartsite$ gedit Gemfile #Add gem to Gemfile … gem ‘bcrypt-ruby’ … #Run bundle install chris@chris-VirtualBox:~/cartsite$ bundle install Using…

  • Reserved Words – Oracle

    Just a quick post on how to check if a word is reserved using the v$reserved_words: SELECT * FROM v$reserved_words WHERE reserved = ‘Y’ Alernatively you can specify the word, i.e. to check if online is a reserved word, run the following: SELECT * FROM v$reserved_words WHERE UPPER(keyword) LIKE ‘%ONLINE%’

Create a website or blog at