sidebar.rb
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:1k
源码类别:

Ajax

开发平台:

Others

  1. class <%= class_name %> < Sidebar
  2.   # display_name "<%= class_name.underscore.humanize %>" # Default
  3.   description "Describe your sidebar here"
  4.   # Check the other sidebars for the sort of thing you can do with setting
  5.   # declarations
  6.   def parse_request(contents, params)
  7.     # contents is a list of the items being rendered on the current page
  8.     # params is the params hash for the current request
  9.     # Take a look at (eg) the amazon sidebar for examples of what gets done here
  10.     # If your sidebar doesn't depend on the request or the contents, you don't
  11.     # need to do anything here.
  12.   end
  13. end