aimpresence_sidebar.rb

来自「用ruby on rails写的一个博客程序,还不错..ruby on rail」· RB 代码 · 共 22 行

RB
22
字号
class AimpresenceSidebar < Sidebar  display_name _("AIM Presence")  description <<EOSDisplays the Online presence of an AOL Instant Messenger screen name<br/>If you don\'t have a key, register <a href="http://www.aim.com/presence">here</a>.EOS  setting :sn, '', :label => 'Screen Name'  setting :devkey, '', :label => 'Key'  def parse_request(contents, params)    # contents is a list of the items being rendered on the current page    # params is the params hash for the current request    # Take a look at (eg) the amazon sidebar for examples of what gets done here    # If your sidebar doesn't depend on the request or the contents, you don't    # need to do anything here.  endend

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?