(I'm sorry for spamming you with this, and I know it's not necessarily
hobo related but it seem reasonable that some of you can answer this).

this works:
          <% cat_name = CGI::unescape(request.request_uri.slice
(19,request.request_uri.length)) %>
          <% cat_id = Category.find_by_name(cat_name).id %>
          <% category_id = params[:category_id] %>
          <div class="filter">Subcategory:<filter-menu param-
name="subcategory" options="&Subcategory.find(:all, :conditions =>
'category_id = 16227')" /></div>

this doesn't:
          <% cat_name = CGI::unescape(request.request_uri.slice
(19,request.request_uri.length)) %>
          <%= cat_id = Category.find_by_name(cat_name).id %>
          <% category_id = params[:category_id] %>
          <div class="filter">Subcategory:<filter-menu param-
name="subcategory" options="&Subcategory.find(:all, :conditions =>
'category_id = cat_id')" /></div>

the only change is that I entered the "cat_id" instead of the arbitary
number that was there. I think it's probably the way that it is
entered but I can't find a proper way of making this thing work.

(I know it's not a very elegant solution for what I'm trying to do,
but I'm lacking the skills to find anything better)

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