aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/file_request_controller.rb
blob: b96a87b8b0147bf193fdc9ff7896b5e7d9e7573a (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
# 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.3 2007-08-23 17:39:42 francis Exp $

class FileRequestController < ApplicationController
    def index
    end

    def create
        @info_request = InfoRequest.new(params[:info_request])

        if not @info_request.save
            render :action => 'index'
        else
            # render create action
        end
    end


end