ruby on rails - link_to_unless_current method not working -



ruby on rails - link_to_unless_current method not working -

i using breadcrumbs_on_rails gem.i want lastly link non clickable.the code in breadcrumbs.rb . def render   @elements.collect |element|     render_element(element)   end.join(@options[:separator] || " » ") end def render_element(element)   content = @context.link_to_unless_current(compute_name(element), compute_path(element), element.options)   if @options[:tag]     @context.content_tag(@options[:tag], content)   else     content   end end

here inspite of link_to_unless_current function lastly link still clickable .

the 2 urls http://abc.com/1 , abc.com/1 . though both urls same since sec 1 has http:// in link_to_unless method fails these links . how overcome ?

ruby-on-rails link-to

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -