blob: f062f0da87d844add5771b72024c94ac33d5a175 (
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
|
# 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.4 2007-09-10 01:16:35 francis Exp $
class FileRequestController < ApplicationController
def index
end
def create
# raise params[:info_request][:public_body_id]
# params[:info_request][:public_body] = PublicBody.find(params[:info_request][:public_body_id])
# params[:info_request].delete(:public_body_id)
@info_request = InfoRequest.new(params[:info_request])
if not @info_request.save
render :action => 'index'
else
# render create action
end
end
end
|