下面是API定義渲染:什麼是當地人在軌道渲染?
render(options = {}, locals = {}, &block)
Returns the result of a render that’s dictated by the options hash. The primary options are:
:partial - See ActionView::Partials.
:file - Renders an explicit template file (this used to be the old default), add :locals to pass in those.
:inline - Renders an inline template similar to how it’s done in the controller.
:text - Renders the text passed in out.
沒有關於什麼是當地人在這裏的目的解釋?什麼是當地人?
謝謝。
偉大的答案爲好。謝謝。 – user938363 2012-01-08 17:03:13