Ruby
Local
Links
- Migrating off Heroky to OpenBSD
- MagLev Ruby
- Ruby Quickref
- http://www.therailsway.com/
- http://www.rubyinside.com/
- Crossing borders: Closures - Closures are a very important concept used in Ruby which makes it very effective and expressive. This is one of the IBM Crossing Borders Articles articles.
- Duck typing - Ruby has dynamic typing which enables "Duck typing".
- simple markup - Parser using ocaml.
- Ruby Benchmark - Comparison between different OS implementations
- Ruby+Csound
- Why Riak Should Power Your Next Rails App
- Canvas - Learning Management System (LMS) like Moodle in Rails. See e.g. brown.edu and CNET article
Gems
Look for all rails version available
gem list rails -ra --no-prerelease
Standard rails install.
gem install rails -v 2.3.18 --no-rdoc --no-ri
Tips and tricks
- Don’t be terrified of building native extensions!
- Add redirection in environment.rb
- Database and model naming
- Database tables in pluralis (e.g. people)
- scaffolding models in singularis (e.g. Person)
- Add default controller/action in config/routes.rb
gem update --system
- to update gem system. Solved my rails 1.2.3 problem! If that also fails try to install gem manually.- Make sure that
dispatch.fcgi
have the right execution permissions. - Dont use zip to move applications!
- Install WindowsInstikiInstall
- If rails 2.2.2 or later is used the MacOSMySQLGem must be installed.
- ruby-debug
rake environment RAILS_ENV=test db:migrate
- InstallFlux
- Ruby on Rails performance comparison with Java, anyone?
sudo gem install --http-proxy $http_proxy json_pure
-gem
access through proxy. Normal environment variables are not detected.
MacOS X Leopard installation
Install lighttpd from ports
sudo port install lighttpd
Install MySQL from .dmg
package. Tiger package worked.
Install mysql gem
sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config