diff options
author | francis <francis> | 2007-08-23 17:39:42 +0000 |
---|---|---|
committer | francis <francis> | 2007-08-23 17:39:42 +0000 |
commit | 0e12859ba39820b7b5a755be998040d39cc70f6f (patch) | |
tree | c8436385764144e472d1072af55be349a700344d /app/controllers/file_request_controller.rb | |
parent | a1e4c20771831d0a2bfe0fd6ee098818dd2b7d47 (diff) |
Fix text of error messages.
Diffstat (limited to 'app/controllers/file_request_controller.rb')
-rw-r--r-- | app/controllers/file_request_controller.rb | 18 |
1 files changed, 6 insertions, 12 deletions
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 |