any suggestion for breadcumb features?
i made my own breadcumb but it does not seem to work
module UserHelper
def get_title
''Home''
end
def load_breadcumb
add_breadcumb get_title, index_url
end
end
module User::ShopHelper
def get_title
''Shop''
end
def load_breadcumb
super
add_breadcumb get_title, user_shop_url
end
end
when i''m in the /user/shop, i called the method, but the result is
''Shop > Shop'', while i was expecting ''Home > Shop''.
apperently the get_title()
in the load_breadcumb() in UserHelper module seems to call
User::ShopHelper''s get_title()
my breadcumb can have to 4 levels in depth. is there any suggestion how
to fix this?
thanks in advance
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---