diff options
Diffstat (limited to 'app/controllers/file_validations_controller.rb')
| -rw-r--r-- | app/controllers/file_validations_controller.rb | 26 |
1 files changed, 26 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..f56cf8ceb --- /dev/null +++ b/app/controllers/file_validations_controller.rb @@ -0,0 +1,26 @@ +class FileValidationsController < InheritedResources::Base + respond_to :html, :xml, :json + + def show + @toc = TestSheetPage.find("toc") + show! + end + + def new + @toc = TestSheetPage.find("toc") + new! + end + + 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 |
