search for: renject

Displaying 2 results from an estimated 2 matches for "renject".

Did you mean: reject
2006 Feb 07
0
Rendering objects directly via <%= render @some_object %>
...e plugin even allow the object being used as mere container of commonly used :locals 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_opt...
2006 Feb 04
1
Rendering objects
...dered. I have already made a functional plugin using only 66 lines of actual code (well, actually only 28, but I thought a few basic helpers would be nice ;-), and I would really like some feedback? Source and documentation is avalible at http://www.heino.gehlsen.dk/software/ruby/rails/plugins/renjects/. The documentation includes a brief introduction to the concept of Rendjets - and of cause a few small examples, which show how to use them. To some, the examples will perhaps at first sight seem at bit too complex, but think code reuse and easier debugging! Having tried using Ren(d)jects wh...