Wiki2
Rails

Ruby On Rails

Local

Gems

Look for all rails version available

gem list rails -ra --no-prerelease

Tips and tricks

  • Add redirection in environment.rb
  • 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
  • Gitting started with Mephisto - Explains how to disable multisite support which seems to make image uploads act strangely.
  • InstallFlux
  • Ruby on Rails performance comparison with Java, anyone?

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

Eman