Archive for the ‘Ruby on Rails’ Category
Redis will not time out. Try installing the SystemTimer gem.
WARNING: Could not find a good alternative for performing time outs — connecting to Redis will not time out. Try installing the SystemTimer gem. rake aborted! undefined method `get’ for nil:NilClass WARNING: Could not find a good alternative for performing time outs — connecting to Redis will not time out. Try installing the SystemTimer gem.rake [...]
In: Ruby on Rails, Server Config · Tagged with: redis, resque, system_timer
sqlite3 Issues – Error installing sqlite3 – sqlite3 requires Ruby version >= 1.9.1
Errors as follows, common problem is not having the header files installed or installing the gem sqlite3 when you actually want sqlite3-ruby. sudo gem install sqlite3 ERROR: Error installing sqlite3: sqlite3 requires Ruby version >= 1.9.1. Fix with:
In: Ruby on Rails, Server Config · Tagged with: sqlite3-ruby, Ubuntu Lucid Lynx 10.04
RubyGem nokogiri failed to install – libxslt is missing – Error installing nokogiri
Had trouble installing nokogiri until I installed dependencies. libxslt is missing #or libxml2 sudo apt-get install libxslt-dev libxml2-dev Full Error Stacktrace:
In: Ruby on Rails, Server Config · Tagged with: nokogiri, rubygems, Ubuntu Lucid Lynx 10.04
Memcached – Libmemcached already built; run ‘rake clean’ first if you need to rebuild.
Trying to install memcached ruby gem on Ubuntu 10.04 Lucid Lynx and I get the error Libmemcached already built; run ‘rake clean’ first if you need to rebuild. Fixed this by installing sudo apt-get install libsasl2-dev gem uninstall memcached && gem install memcached Full Error Stacktrace:
In: Ruby on Rails, Server Config, Ubuntu Tricks · Tagged with: Memcached, rubygems, Ubuntu Lucid Lynx 10.04
Developing Ruby on Rails on Ubuntu Lucid Lynx 10.04
Developing for any Web Application can be helped by developing in the same environment as the deployment. For me this means that running Ubuntu Desktop and deploying onto Ubuntu Server is a no brainer. Most Ruby on Rails developers you’ll find today use a Mac and Textmate. I learnt Ruby on Rails in the same [...]
In: Ruby on Rails, Server Config · Tagged with: Ubuntu Lucid Lynx 10.04
Sending Emails with Rails, multipart html plain with Attachments
When trying to send attachments along with type versons of an email (html and plain text) you might notice that there is no content in your email message. While I found this out too. Simple if not over the top solution. The trick is that you have to put the html and plain part inside [...]
In: Ruby on Rails · Tagged with: attachments, email, multipart
what changes did I just pull from git?
Ever wanted to see what changes you just pulled from github? This little command will show you the changes for the last commit, if the pull resulted in more commits being pulled then add a couple more ‘^’s to HEAD^ git diff HEAD^ HEAD
In: Ruby on Rails · Tagged with: git
Git cherry-pick
cherry-pick is a useful Git command, especially if you are working in an Agile team. We used it for the first time today on our project. Team member A lets call him “James” made a feature and put it onto master. Team member B lets call him “Jordan” later refactered some code from “James”‘s feature. [...]
In: Ruby on Rails · Tagged with: git

