<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -26,6 +26,9 @@ class FlightsController &lt; BelongsToUser
     if @flight.save
       @user.update_stored_statistics!
       redirect_to :action =&gt; 'index'
+    else
+      @classes = FlightClass.find( :all )
+      render :action =&gt; 'new'
     end
   end
 
@@ -38,6 +41,9 @@ class FlightsController &lt; BelongsToUser
     if @flight.save
       @user.update_stored_statistics!
       redirect_to :action =&gt; 'index'
+    else
+      @classes = FlightClass.find( :all )
+      render :action =&gt; 'edit'
     end
   end
 </diff>
      <filename>app/controllers/flights_controller.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>95b27198e606aa078e08a5fb28e373efb5fc097f</id>
    </parent>
  </parents>
  <author>
    <name>James Smith</name>
    <email>james@floppy.org.uk</email>
  </author>
  <url>http://github.com/Floppy/carbon-diet/commit/25a5e8a88a0a54d31777929ea70d02060741392b</url>
  <id>25a5e8a88a0a54d31777929ea70d02060741392b</id>
  <committed-date>2009-05-21T13:15:13-07:00</committed-date>
  <authored-date>2009-05-21T13:15:13-07:00</authored-date>
  <message>Fix missing templates when flight creation/editing fail</message>
  <tree>ae3b9fb12bdca6af029af8614698efa6e0c57991</tree>
  <committer>
    <name>James Smith</name>
    <email>james@floppy.org.uk</email>
  </committer>
</commit>
