From 9b47f92b3e6420879a54289c3b6d01e88438c2de Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Wed, 16 Jan 2008 18:02:56 +0000 Subject: [PATCH] ActionItem17: added a edit_validation info action to handle the information about the validation entity --- app/controllers/my_profile/enterprise_validation_controller.rb | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) diff --git a/app/controllers/my_profile/enterprise_validation_controller.rb b/app/controllers/my_profile/enterprise_validation_controller.rb index c30698a..221c224 100644 --- a/app/controllers/my_profile/enterprise_validation_controller.rb +++ b/app/controllers/my_profile/enterprise_validation_controller.rb @@ -49,4 +49,13 @@ class EnterpriseValidationController < MyProfileController end end + def edit_validation_info + @info = profile.validation_info + if request.post? + if @info.update_attributes(params[:info]) + redirect_to :action => 'index' + end + end + end + end -- libgit2 0.21.2