class OrdersController < ApplicationController # TODO: Add before_filters to ensure that the user is logged in? def confirm @order = Order.new ParamFilter.select_order_attributes(params) end def list @orders = Order.find_all_by_account_id(current_account) end def new if logged_in? @order = Order.new_with_defaults :account => current_account else flash.now[:message] = "You must sign on before attempting to check out. Please sign on and try checking out again." render :template => "authentication/login" end end def show @order = Order.find params[:orderId] end end