edition_helper.rb

来自「本书源码对于学习RUBY网络编程语言非常有帮助。」· RB 代码 · 共 16 行

RB
16
字号
module EditionHelper  def link_to_edition(edition)    link_to "#{edition.publisher.name} (#{edition.year})",         :controller => "edition",         :action     => "show",         :id         => edition.id  end  def link_to_edition_title(edition)    link_to edition.nice_title,         :controller => "edition",         :action     => "show",         :id         => edition.id  end    end

⌨️ 快捷键说明

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