From 440c66fb6a2a4a092d0bd8354729b5343fe2b1bb Mon Sep 17 00:00:00 2001 From: francis Date: Tue, 21 Aug 2007 11:33:45 +0000 Subject: Well OK, at least it can vaguely check errors now. --- app/controllers/file_request_controller.rb | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 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 9b0f7c403..2bcab9ea9 100644 --- a/app/controllers/file_request_controller.rb +++ b/app/controllers/file_request_controller.rb @@ -4,7 +4,7 @@ # 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.1 2007-08-04 11:10:25 francis Exp $ +# $Id: file_request_controller.rb,v 1.2 2007-08-21 11:33:45 francis Exp $ class FileRequestController < ApplicationController def index @@ -14,9 +14,16 @@ class FileRequestController < ApplicationController end def create - respond_to do |format| - format.html - end + @info_request = InfoRequest.new(params[:info_request]) + @info_request.save + + #redirect_to(:action => 'index') + render :action => 'index' + +# respond_to do |format| +# format.html +# end + end -- cgit v1.2.3