Monthly Archives: August 2011

invalid option: –runner (OptionParser::InvalidOption) while invoking rspec through Netbeans

Best way is to avoid invoking UI runner, this can be done    Disable it via tools -> options -> miscellaneous -> Ruby http://www.klairvoyant.in Advertisements

Posted in ruby on rails | Tagged , | 4 Comments

rvm useage

RVM make installing multiple ruby interpreters / runtimes easy and consistent, it provides features such as gemsets that aren’t typically supported out of the box on most ruby installs. http://www.klairvoyant.in

Posted in rails, ROR, ruby on rails | Tagged , | Leave a comment

RuntimeError (!!! Missing the mysql2 gem. Add it to your Gemfile: gem ‘mysql2’):

the fix is development: adapter: mysql2 database: development_database username: username password: password Instead of adapter: mysql http://www.klairvoyant.in

Posted in rails, ROR, ruby on rails | Tagged , | Leave a comment

FasterCSV

FasterCSV is intended as a replacement to Ruby‘s standard CSV library. Installation 1) $ gem install fastercsv 2) add the following to gemfile gem ‘fastercsv’ code sample performancecsv=Array.new FasterCSV.open(“./file.csv”, “w”) do |csv| @studentdetails.each do | student | performancecsv.push(“content1”) ……… ….. … Continue reading

Posted in rails, ROR, ruby on rails | Tagged , | Leave a comment