Create a method in the controller to accept the form input
e.g
def approve_form
case params[:submit]
when "Approve"
redirect_to :action=>"approve"
return
when "Reject"
redirect_to :action=>"reject"
return
end
end
in your form, do this
No comments:
Post a Comment