Monday, March 7, 2011

installing phusion passenger

1st install the gem:
gem install passenger
2nd call the apache script:
passenger-install-apache2-module
didnt work I got the follwing error:
passenger-install-apache2-module: command not found
found the file and run it:
sudo /var/lib/gems/1.8/bin/passenger-install-apache2-module
install the missing packages, this is what I was missing:
sudo apt-get install build-essential libcurl4-openssl-dev libssl-dev zlib1g-dev apache2-prefork-dev libapr1-dev libaprutil1-dev
Follow the instructions given by the script

jquery with rails3

After creating a new Rails app -
rails new AppName
add this to your gemfile -
gem 'jquery-rails', '>= 0.2.6'
run
bundle install
run
rails generate jquery:install
make sure you choose to overwrite the rails.js

Installing mysql2 gem - Ubuntu

1st install the mysql client dev -
sudo apt-get install libmysqlclient-dev
then install the gem by adding the following line to your gem file
gem 'mysql2'