diff options
| author | Michel Etienne | 2012-07-02 08:11:29 +0200 |
|---|---|---|
| committer | Michel Etienne | 2012-07-02 08:11:29 +0200 |
| commit | 0412d82c225ddd47e3c0436ae5d421b1098d2fa0 (patch) | |
| tree | 7ed33590d68d9066fdd416b41f949dd075d209da /app/controllers/file_validations_controller.rb | |
| parent | 8ccb51a3fd3907388ccaa02652a50af5e2ac08e0 (diff) | |
| download | chouette-core-0412d82c225ddd47e3c0436ae5d421b1098d2fa0.tar.bz2 | |
add file validation
Diffstat (limited to 'app/controllers/file_validations_controller.rb')
| -rw-r--r-- | app/controllers/file_validations_controller.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/controllers/file_validations_controller.rb b/app/controllers/file_validations_controller.rb new file mode 100644 index 000000000..0f0dcf71b --- /dev/null +++ b/app/controllers/file_validations_controller.rb @@ -0,0 +1,17 @@ +class FileValidationsController < InheritedResources::Base + respond_to :html, :xml, :json + + + def create + create! do |success, failure| + success.html { redirect_to file_validations_path } + end + end + + protected + + def collection + @file_validations ||= end_of_association_chain.paginate(:page => params[:page]) + end + +end |
