Index: /branches/locker-dev/locker/deploy/bin/rails
===================================================================
--- /branches/locker-dev/locker/deploy/bin/rails	(revision 2260)
+++ /branches/locker-dev/locker/deploy/bin/rails	(revision 2261)
@@ -43,5 +43,19 @@
 my $appdir = `basename $cwd`;
 chomp $appdir;
-my $appclass = ucfirst $appdir;
+
+open APPLICATION_RB, "config/application.rb";
+my $appclass;
+while(<APPLICATION_RB>) {
+    if (/module (\w+)\n/) {
+	$appclass = $1;
+	last;
+    }
+}
+close APPLICATION_RB;
+if (!$appclass) {
+    open FAILED, ">.failed";
+    close FAILED;
+    die "Couldn't find application class name - plase email scripts\@mit.edu with the names of your locker and the application you tried to create. Sorry!";
+}
 
 open PUBLIC_HTACCESS, ">public/.htaccess";
