explain user:owns on item search

This commit is contained in:
Emi Matchu 2011-07-17 17:28:45 -04:00
parent 884ad2d5b8
commit f2d6a454c5
2 changed files with 9 additions and 0 deletions

View file

@ -71,6 +71,10 @@ module ItemsHelper
sprintf(NeoitemsURLFormat, CGI::escape(item.name)) sprintf(NeoitemsURLFormat, CGI::escape(item.name))
end end
def your_items_path
user_signed_in? ? user_closet_hangers_path(current_user) : login_path
end
private private
def build_on_pet_types(species, special_color=nil, &block) def build_on_pet_types(species, special_color=nil, &block)

View file

@ -20,6 +20,11 @@
%dd %dd
returns any item with the word "kreludor" and the phrase "altador cup" returns any item with the word "kreludor" and the phrase "altador cup"
in it, but not the word "background" in it, but not the word "background"
%dt hat user:owns
%dd
returns
= link_to 'items that you own', your_items_path
with the word "hat"
%dt blue is:nc %dt blue is:nc
%dd returns any NC Mall item with the word "blue" in it %dd returns any NC Mall item with the word "blue" in it
%dt collar -is:pb %dt collar -is:pb