and to elaborate. I'm currently at this stage:
        <div class="filter-comb">
          <div class="filter">Choose Category:<filter-menu param-
name="category" options="&Category.all"/></div>
                    <div class="filter">Choose subcategory:<filter-
menu param-name="subcategory" options="&Subcategory.all">
              <options:>
                <if category="&@category">
                  <select-menu
options="&Subcategory.find_by_category_id('16227')"/>
                </if>
                <else>
                  <select-menu disabled><option>Not going to work</
option></select-menu>
                </else>
              </options:>
            </filter-menu>
        </div>
      </div>
and I have two questions regarding this thing.

first, when I get to the page it gives me:
undefined method `inject' for #<Subcategory:0x36f6a00>
Extracted source (around line #12):

9:           <div class="filter">Choose Subcategory:<filter-menu param-
name="subcategory" options="&Subcategory.all">
10:               <options:>
11:                 <if category="&@category">
12:                   <select-menu
options="&Subcategory.find_by_category_id('16227')"/>
13:                 </if>
14:                 <else>
what am I doing wrong.

second question, what should I replace the '16227' (so i'll get the
chosen_'Category.id') and the "category="&@category"" (which I left
untill I'll find out what can I put there that will recieve the
"Category" parameter. perhaps there's a way of getting the parameter
from the scope?)?


On Feb 13, 1:45 am, isaac <[email protected]> wrote:
> 1.
> though i learned some things from the receipt, I didn't got anywhere
> usefull so if there is anyone who can point me to the right
> direction... (thanks)
>
> 2.
> there were a few errors in the guide:
>
> $ ./script/generate hobo_model_controller project name:string
>
> should have been:
>
> $ ./script/generate hobo_model_resource project name:string?
> seems more reasonable.
>
> and..
>
> <extend tag="form" for="Project">
> .
> .
> .
>             <select-one options="&[email protected]" disabled/>
> .
> .
> .
> </extend>
>
> should have been:
>
> <extend tag="form" for="Project">
> .
> .
> .
>             <select-one options="&[email protected]"/>
> .
> .
> .
> </extend>
>
> On Feb 2, 9:50 am, Scott Bronson <[email protected]> wrote:
>
>
>
> > Oh yes, it can be done.
>
> >http://cookbook.hobocentral.net/recipes/15-dynamically-populated-sele...
>
> > On Sun, Feb 1, 2009 at 6:14 AM, isaac <[email protected]> wrote:
>
> > > Can it be done?
> > > let's say I have "Virus" belongs_to "Genus" belongs_to "family", and I
> > > want to be able to look for a specific virus based on it's genus and
> > > it's family.
>
> > > I'm trying currently to add maybe an outside menu which'll take (or
> > > give) from (or to) the filter menu it's properties.
>
> > >  <form action="?">
> > >    <div class="family">
> > >        <label class="choose-family">Choose Family:</label>
> > >        <select-one options="&family.all"/>
> > >    </div >
> > >  </form>
>
> > >  <div class="filter">
> > >    Choose Genus:
> > >    <filter-menu param-name="genus" options="&[email protected]"/>
> > >  </div>
> > > (of course I'll need to integrate the whole Ajax thingy from Tom's
> > > guide..)
>
> > > I haven't tried it yet and I'm sure there are many mistakes I've
> > > thrown here. so if any of you could point me to the right direction
> > > I'l be grateful.
--~--~---------~--~----~------------~-------~--~----~
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