skip to main
|
skip to sidebar
Software Development
Friday, August 12, 2011
require that is compatible with ruby 1.8.x and 1.9.x
require File.expand_path(File.join(File.dirname(__FILE__), 'player'))
This makes : require 'player' work on both Ruby 1.8.x and 1.9.x
Newer Post
Older Post
Home
Credit Cards Logic : Rails 3 site goes live
Credit Cards
Logic is now live.
Total Pageviews
Popular Posts
sudo: port: command not found
export PATH=$PATH:/opt/local/bin export MANPATH=$MANPATH:/opt/local/share/man export INFOPATH=$INFOPATH:/opt/local/share/info Included the ...
How to use hidden field in Rails
<%= f.hidden_field :user_id, :value => current_user.id %> This passes a hidden variable user_id with the value of current_user.id
Installing MySQL server on Centos 5
Followed the instructions on this blog post : Rails Stack on CentOS 5 The following instructions has the chkconfig which works. The given ...
How to create drop down boxes in Ruby on Rails
Migration file : 001_create_people.rb class CreatePeople < ActiveRecord::Migration def self.up create_table :people do |t| t.co...
How to find out the version of CentOS?
[root@rubyplus ~]# uname -a Linux rubyplus.tempdomain.com 2.6.18-53.1.6.el5.028stab053.6PAE #1 SMP Mon Feb 11 20:53:20 MSK 2008 i686 i686 i3...
Installing Nginx on CentOS 5
[root@rubyplus etc]# yum install pcre Loading "installonlyn" plugin Setting up Install Process Setting up repositories base ...
LoadError: no such file to load — selenium
LoadError: no such file to load — selenium. This kind of error message can happen if you have installed anything as a gem but you have not s...
How to install gem without Rdoc or ri
$gem install passenger -d --no-rdoc --no-ri
install specific version of rails
sudo gem install -v=2.2.2 rails --include-dependencies
-bash: mate:command not found
In Mac OS X 10.5.8 add the line: alias mate='open -a TextMate.app' to your ~/.bashrc file
Free Lessons on Ruby and Rails
Blog Archive
►
2012
(48)
►
May
(7)
-bash: mongod: command not found
Deploying to a VPS
undefined local variable or method `autotest' for ...
Data Driven Unit Test
`bin_path': can't find gem rspec-core
Creating a Ruby gem with RSpec as the test framewo...
irb tricks
►
April
(29)
Solution for Ruby Koans
How to install rubygems from source on Ubuntu 10.0...
`merge': can't convert String into Hash
How to install Ruby 1.8.7 on Ubuntu 10.04
How to count the number of files in a given direct...
undefined method `name' for RubyToken::TkLPAREN
How to remove Open JDK on Ubuntu 10.04
How to append to a file in Ruby
How to list all files with a given extension in Ru...
How to list all files in a directory in Ruby
How to copy local file to a remote Ubuntu server
How to comment multiple lines in Ruby
How to compare Time in RSpec
no such file to load -- zlib
How to list files in MB on Linux
How to limit the number of records returned by mys...
How to list all the loaded gems on a server
sh: irb: not found
no such file to > load -- net/https when starting ...
How to convert ppk file to normal ssh key in Ubunt...
scp permission denied publickey
no such file to load -- net/https on Ubuntu 10.04
How to install mysql gem on Ubuntu 10.04
How to install Nokogiri on Ubuntu
How to install curb gem on Ubuntu 10.04
How to install bson_ext on Ubuntu 10.04
How to ssh using a given private key
It is recommended that your private key files are ...
Rails Recipes 3rd Edition
►
March
(3)
WARNING: 'require 'rake/rdoctask'' is deprecated. ...
Using Stubs with Test Spy in Ruby
TDD Bootcamp Videos
►
February
(2)
Testing and Command Query Separation Principle
Stubs are not Mocks - Concise Version of Martin Fo...
►
January
(7)
RCov Tips
How to uninstall all gems in global rvm ?
gem "rake" is not installed
How to disable acts_as_audited 2.0 rails plugin in...
Using Reek gem in Rails 3.1 projects
rcov for Rails 3.1
Rails Best Practices
▼
2011
(47)
►
December
(3)
You need to specify gem names as Strings. Use 'gem...
syntax error, unexpected keyword_end
►
November
(2)
►
October
(4)
►
September
(3)
▼
August
(3)
require that is compatible with ruby 1.8.x and 1.9...
ImageMagick Installer
ImageScience on Snow Leopard
►
July
(4)
►
June
(4)
►
May
(4)
►
April
(14)
►
March
(2)
►
February
(2)
►
January
(2)
►
2010
(42)
►
November
(1)
►
September
(7)
►
August
(2)
►
July
(8)
►
June
(3)
►
May
(1)
►
April
(9)
►
March
(3)
►
February
(7)
►
January
(1)
►
2009
(16)
►
October
(1)
►
September
(2)
►
August
(3)
►
July
(5)
►
April
(1)
►
March
(1)
►
February
(2)
►
January
(1)
►
2008
(55)
►
December
(2)
►
November
(6)
►
October
(3)
►
September
(2)
►
August
(3)
►
July
(3)
►
June
(7)
►
May
(1)
►
April
(12)
►
March
(7)
►
February
(4)
►
January
(5)
►
2007
(123)
►
December
(25)
►
November
(7)
►
October
(20)
►
September
(5)
►
August
(4)
►
July
(11)
►
June
(28)
►
May
(5)
►
April
(8)
►
March
(3)
►
February
(5)
►
January
(2)
►
2006
(32)
►
December
(3)
►
November
(15)
►
October
(9)
►
July
(2)
►
June
(1)
►
February
(2)
►
2005
(10)
►
October
(2)
►
September
(1)
►
March
(2)
►
January
(5)
►
2004
(12)
►
December
(12)
About Me
Bala Paranj
View my complete profile
Learn Ruby and Rails for Free