Displaying 1 result from an estimated 1 matches for "baserenject".
2006 Feb 07
0
Rendering objects directly via <%= render @some_object %>
...s hashes set by the controller (as showed in the documentation).
An object could be made parseable anywhere, but the controller would be
an obvious place to start ;-)
-----------------
class SomeClass
# Include renject functionality to allow object to render itself
include ActionView::Renjects::BaseRenject
# Generate hash to be parsed back to ActionView render method
# The options parameter, which contains the original options hash,
# could optionally be uesd to when generating the hash.
#
def renject_render_options( options = {} )
# Generate the wished for hash
return { :partial => @partial, :l...