Honestly I think the association route will be the most succinct as
it's just an additional line in the model or even just an additional
hash key on an existing line.

On Aug 23, 2:45 pm, Ronbo <[email protected]> wrote:
> Thanks Kevin - that clarified everything. I have 6 of these conditions
> and was hoping for a more succinct way of going about it, but your
> suggestion was my 'fall back'. Good to know.
>
> On Aug 23, 4:25 pm, kevinpfromnm <[email protected]> wrote:
>
> > ahh, I'd probably look to see if that's more appropriate to add to the
> > association as a condition or to make a separate association with that
> > condition on it.  fields is to determine with of the submodels fields
> > to include on the input-many field-list, not which models to use.
>
> > On Aug 23, 2:11 pm, Ronbo <[email protected]> wrote:
>
> > > Thanks Kevin,
>
> > > How would I filter a field to limit the user's selection? What I am
> > > trying to achieve is something like:
>
> > > <hjq-input-many:question-answers fields="answer.find(:all, :conditions
> > > => {:criteria_level_id => 1}), pass_mark"></hjq-input-many>
>
> > > As you can see, I need to filter on the field "answer" passed in ...
>
> > > On Aug 23, 2:23 pm, kevinpfromnm <[email protected]> wrote:
>
> > > > yep.  both the skip and fields attributes are passed to the field-list
> > > > in input-many.  http://cookbook.hobocentral.net/api_tag_defs/input-many
> > > > for more info
>
> > > > On Aug 22, 2:37 pm, Ronbo <[email protected]> wrote:
>
> > > > > Hi,
>
> > > > > I have a situation where input-many seems to be the right control, and
> > > > > I pass the fields I want the user to interact with. My issue is that I
> > > > > need to filter the contents of one of these fields based on the
> > > > > context. I don't see a way to do that in the input-many tag.
>
> > > > > Can I use options= to filter a column passed to fields=?
>
> > > > > If not, can anyone suggest an approach?
>
> > > > > Thanks!

-- 
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