OSDN Git Service

t#:
[pettanr/pettanr.git] / app / controllers / application_controller.rb
index 6d495b1..906f5b4 100644 (file)
@@ -125,6 +125,24 @@ class ApplicationController < ActionController::Base
     end
   end
   
+  def my_list params
+    controller_name = params[:controller]
+    action_name = params[:action]
+    controller = Pettanr::Application::manifest.controller_managers[controller_name]
+    @action = controller.open(action_name, params, @operators)
+    @items = @action.items 
+
+    respond_to do |format|
+      format.html {
+        @filer = @action.filer
+        render :template => 'system/filer', :locals => {
+          :filer => @filer
+        }
+      }
+      format.json { render json: @items.to_json(Scroll.list_json_opt) }
+    end
+  end
+  
   def format_filer format
     format.html {
       @paginate = @@model.list_paginate(@page, @page_size)