Here's as hint for part of it:

Submission.find(:all, :conditions => ["users.genre = ?", "Prose"], 
:include => ["users"])

In general, you're usually better off putting your logic in your 
controller.   Assign your finder to @submissions (or even self.this) and 
then reference in the view.

Bryan


upisdown 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