当前位置: 动力学知识库 > 问答 > 编程问答 >

How to locate a method quickly in Rails' API docs?

问题描述:

For instance, I want to find the constructor of ActionController::RoutingError at http://api.rubyonrails.org/. I typed ActionController::RoutingError or RoutingError in the search box, nothing got returned.

网友答案:

This is a bad example. See the source:

  class RoutingError < ActionControllerError #:nodoc:
    attr_reader :failures
    def initialize(message, failures=[])
      super(message)
      @failures = failures
    end
  end

There's no documentation for the class.

Also try http://apidock.com/rails -- this resource can be more helpful in general.

分享给朋友:
您可能感兴趣的文章:
随机阅读: