end
def index
- filer_list
+ if params['path'] # secret api
+ list = Folder.where(['name = ?', params['path']])
+ respond_to do |format|
+ format.json {
+ res = {
+ :page_status => {:type => :unlimited},
+ :list => list
+ }
+ render json: res.to_json
+ }
+ end
+ else
+ filer_list
+ end
end
def children_html_format format
def destroy
set_model
@item = @my_model_class.edit(params[:id], @operators)
- render_destroy @my_model_class.path_name
+ render_destroy '/' + @my_model_class.path_name
end
end