aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/file_request_controller.rb
blob: 2bcab9ea93f0157c555587ad2fa60472f64fd46d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# app/controllers/file_request_controller.rb:
# Interface for building a new FOI request.
#
# 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 $

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

    end


end