Fix project settings page for rails 2 and 3. Fixes #814