Bryan got the main question but I'll point out that the 'with'
attribute basically takes a ruby object (i.e. anything in ruby really)
and sets the context to it.  The & symbol, tells it to evaluate what
follows as ruby code (other wise it, just tries calling the string as
a method).

Implicit context is a tough concept to grasp fully at first but it's
definitely one of the more powerful things in dryml.  Everywhere along
any dryml page there is a 'this' object.  Tags can change context for
their span (i.e. with the with or field attribute).  See the dryml
guide in the cookbook for more info 
http://cookbook.hobocentral.net/manual/dryml-guide

On Nov 8, 8:35 pm, upisdown <[email protected]> wrote:
> I am trying to render a complicated table and need some advice. I am
> trying to use this code which shows no errors but does not work.
>
>  <table-plus with="&Submission.all" where="current_user.comments !=
> comments && @user.genre == 'Prose'" fields="issue, this, owner, genre,
> comments.count, judgements">
>
>          </table-plus>
>
> Can I use where to put more arguments on with? Is there a way to run
> arguments against the with param so that I can draw a more specific
> table? Can I do it with ruby?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to