Instiki 0.16.3: Rails 2.3.0
Instiki now runs on the Rails 2.3.0 Candidate Release. Among other improvements, this means that it now automagically selects between WEBrick and Mongrel. Just run ./instiki --daemon
This commit is contained in:
parent
43aadecc99
commit
4e14ccc74d
893 changed files with 71965 additions and 28511 deletions
|
@ -46,6 +46,38 @@ module ActionView
|
|||
#
|
||||
# This will render the partial "advertisement/_ad.erb" regardless of which controller this is being called from.
|
||||
#
|
||||
# == Rendering objects with the RecordIdentifier
|
||||
#
|
||||
# Instead of explicitly naming the location of a partial, you can also let the RecordIdentifier do the work if
|
||||
# you're following its conventions for RecordIdentifier#partial_path. Examples:
|
||||
#
|
||||
# # @account is an Account instance, so it uses the RecordIdentifier to replace
|
||||
# # <%= render :partial => "accounts/account", :locals => { :account => @buyer } %>
|
||||
# <%= render :partial => @account %>
|
||||
#
|
||||
# # @posts is an array of Post instances, so it uses the RecordIdentifier to replace
|
||||
# # <%= render :partial => "posts/post", :collection => @posts %>
|
||||
# <%= render :partial => @posts %>
|
||||
#
|
||||
# == Rendering the default case
|
||||
#
|
||||
# If you're not going to be using any of the options like collections or layouts, you can also use the short-hand
|
||||
# defaults of render to render partials. Examples:
|
||||
#
|
||||
# # Instead of <%= render :partial => "account" %>
|
||||
# <%= render "account" %>
|
||||
#
|
||||
# # Instead of <%= render :partial => "account", :locals => { :account => @buyer } %>
|
||||
# <%= render "account", :account => @buyer %>
|
||||
#
|
||||
# # @account is an Account instance, so it uses the RecordIdentifier to replace
|
||||
# # <%= render :partial => "accounts/account", :locals => { :account => @account } %>
|
||||
# <%= render(@account) %>
|
||||
#
|
||||
# # @posts is an array of Post instances, so it uses the RecordIdentifier to replace
|
||||
# # <%= render :partial => "posts/post", :collection => @posts %>
|
||||
# <%= render(@posts) %>
|
||||
#
|
||||
# == Rendering partials with layouts
|
||||
#
|
||||
# Partials can have their own layouts applied to them. These layouts are different than the ones that are
|
||||
|
@ -196,7 +228,7 @@ module ActionView
|
|||
path = "_#{partial_path}"
|
||||
end
|
||||
|
||||
_pick_template(path)
|
||||
self.view_paths.find_template(path, self.template_format)
|
||||
end
|
||||
memoize :_pick_partial_template
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue