I don't know if using a partial style filename/call will work with
dryml.  Instead of partials, you define tags (usually in
application.dryml) and just call the tags.

>From first glance, what you're after should be accomplish-able with
part and update.

First, your search tag:
<def tag="search-clients">
  <repeat><view:house_interest /></repeat><else>Clients is nil</else>
</def>

Your form would be something like <form with="&Client" action="search"
update="part_dom_id_here">...

Then the controller method would probably just be a hobo_index with
custom finder.

Though, there might be some issue with getting hobo to update a part
that is a collection (there was a post recently with that problem).

See http://cookbook.hobocentral.net/manual/controllers for help with
controllers and routing in hobo and http://cookbook.hobocentral.net/manual/ajax
for help with part and update.

On May 5, 12:14 am, blueHandTalking <[email protected]> wrote:
> Hi Kevin,
>
> yes, that worked. Thank you. Is there anywhere in the Hobo
> documentation that I could read
> more about this, or is this a rails thing in general?
>
> Also, now the following is what is returned in the page:
>
>    $("searchresults").replacehtml({"object": [], "partial":
> "search"});
>
> At this point, I am not overly concerned with the fact that the object
> is null,
> because I know I have issues with Thinking Sphinx/Sphinx that I have
> to solve.
>
> However, I am concerned that these results are just getting dumped
> backed to me
> and not processed by my search.rjs file,
>
> page[:searchresults].replacehtml :partial => 'search', :object =>
> @clients
>
> and then the partial file, _search.dryml
>
>  <% if @clients == nil %>
>          <p> clients is nil </p>
>     <% else %>
>          <% for client in @clients %>
>                  <%= client.house_interest %>
>  <% end %>
>
> Here again is definition in users controller:
>
>  def search
>   @clients = User.search params[:search], :conditions => {:category
> => :client}
>    respond_to do |wants|
>       wants.html
>       wants.js
>    end
>  end
>
> Cheers,
>
>    Jet
>
>  <form   action="/users/search" method="get"  update="searchresults">
>          <input id="search" type="text" name="search"  />
>         <submit id="searchsubmit" label="SEARCH" />
>  </form>
>
> --
> 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 
> athttp://groups.google.com/group/hobousers?hl=en.

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