From 0e12859ba39820b7b5a755be998040d39cc70f6f Mon Sep 17 00:00:00 2001 From: francis Date: Thu, 23 Aug 2007 17:39:42 +0000 Subject: Fix text of error messages. --- app/controllers/file_request_controller.rb | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'app/controllers/file_request_controller.rb') diff --git a/app/controllers/file_request_controller.rb b/app/controllers/file_request_controller.rb index 2bcab9ea9..b96a87b8b 100644 --- a/app/controllers/file_request_controller.rb +++ b/app/controllers/file_request_controller.rb @@ -4,26 +4,20 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: file_request_controller.rb,v 1.2 2007-08-21 11:33:45 francis Exp $ +# $Id: file_request_controller.rb,v 1.3 2007-08-23 17:39:42 francis Exp $ class FileRequestController < ApplicationController def index - respond_to do |format| - format.html - end end def create @info_request = InfoRequest.new(params[:info_request]) - @info_request.save - - #redirect_to(:action => 'index') - render :action => 'index' - -# respond_to do |format| -# format.html -# end + if not @info_request.save + render :action => 'index' + else + # render create action + end end -- cgit v1.2.3