So I'm using form_remote_tag with the appear visual effect - where my
users enter a product - and the appear div then shows details.. (in a
partial).

Now - if no products are found by their query - I'd like to show "no
results" - how would I go about that ?

If tried adding the following to my partial:

<% if @products.empty? %>
  bla bla bla
<% end %>

This, however, does not work.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to