1 class OrderController < ApplicationController
5 #@orders = Order.find :all, :limit => 200, :order => "created_at DESC"
6 redirect_to :action => "index"
10 redirect_to :action => "new"
18 #redirect_to :action => "pause"
22 @order = Order.new params[:order]
24 Promomailer.deliver_promo_order @order
25 redirect_to "/order/thanks" and return
27 flash.now[:error] = "Your submission could not be processed, please fix the problems listed below: \n"
28 flash.now[:error] += @order.errors.full_messages.join("\n")