explain user:owns on item search
This commit is contained in:
parent
884ad2d5b8
commit
f2d6a454c5
2 changed files with 9 additions and 0 deletions
|
@ -71,6 +71,10 @@ module ItemsHelper
|
|||
sprintf(NeoitemsURLFormat, CGI::escape(item.name))
|
||||
end
|
||||
|
||||
def your_items_path
|
||||
user_signed_in? ? user_closet_hangers_path(current_user) : login_path
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def build_on_pet_types(species, special_color=nil, &block)
|
||||
|
|
|
@ -20,6 +20,11 @@
|
|||
%dd
|
||||
returns any item with the word "kreludor" and the phrase "altador cup"
|
||||
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
|
||||
%dd returns any NC Mall item with the word "blue" in it
|
||||
%dt collar -is:pb
|
||||
|
|
Loading…
Reference in a new issue