OSDN Git Service

Adds exception procedures
[dianzhuhui/site.git] / hanMorph / app / controllers / hanmorph_controller.rb
index b2e4b56..c6336a3 100644 (file)
@@ -25,21 +25,6 @@ class HanmorphController < ApplicationController
       main_procedure_at_home
     end
   end
-  def main_procedure_at_home
-    if @char then
-      process_unihan
-      process_sbgy
-      process_dianzhu
-      process_daxu
-    end
-    if @extext then
-      begin
-        search_daxu
-      rescue TooManyCandidatesError => bang
-        @errors << bang
-      end
-    end
-  end
   def rime_groups
     @groups = Array.new
     volumes = Volume.find(:all)
@@ -82,6 +67,22 @@ class HanmorphController < ApplicationController
   end
   
   private
+  def main_procedure_at_home
+    if @char then
+      process_unihan
+      process_sbgy
+      process_dianzhu
+      process_daxu
+    end
+    if @extext then
+      begin
+        search_daxu
+      rescue TooManyCandidatesError => bang
+        @errors << bang
+      end
+    end
+  end
+
   # Validation Input Parameters
   def check_targets
     c = params[:char]