search for: gehlsen

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

Did you mean: nehlsen
2006 Feb 07
0
Rendering objects directly via <%= render @some_object %>
...me_object %> corresponds to <%= render :partial => @partial, :locals=> {:foo => @foo, :baa => @baa} %> Now imagine having to repeat this multiple times - and then trying to find a typo... ---------------- The source and documentation is still avalible at http://www.heino.gehlsen.dk/software/ruby/rails/plugins/renjects/ NB. Since my initial post, I have changed the classes into modules, so that _any_ module could be rendered by extending these modules. Kind regards Heino H. Gehlsen Heino H. Gehlsen wrote: > So, Ruby is OO all the way, but in Rails we can?t render a...
2006 Feb 04
1
Rendering objects
...(d)jects?, objects capable of being rendered. 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 debugg...