阅读背景:

RoR - 使用相同块的两种respond_to格式?

来源:互联网 

Is there something like:

是否有类似的东西:

respond_to do |format|

  format.html || format.xml do
    #big chunk of code
  end

end
respond_



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: