diff options
author | francis <francis> | 2007-08-21 11:33:45 +0000 |
---|---|---|
committer | francis <francis> | 2007-08-21 11:33:45 +0000 |
commit | 440c66fb6a2a4a092d0bd8354729b5343fe2b1bb (patch) | |
tree | ff1787f483715933d941221b71330c9be2a8f7a7 /app/controllers/file_request_controller.rb | |
parent | 0f1bc65ec50bcbb0b0f9f4bb3cdb19d2a96522eb (diff) |
Well OK, at least it can vaguely check errors now.
Diffstat (limited to 'app/controllers/file_request_controller.rb')
-rw-r--r-- | app/controllers/file_request_controller.rb | 15 |
1 files changed, 11 insertions, 4 deletions
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 |