ruby - Rails link_to with empty/blank name -


i want make link has name part in link_to api link_to(name = nil, options = nil, html_options = nil) empty or blank. code link_to("default", default_path, :class => "default") results in <a class="default" href="/default">default</a> want <a class="default" href="/default"> </a> instead.

passing nil link_to tag link_to(nil, default_path, :class => "default") results in url path being passed name should <a class="default" href="/default">/default</a>

what should pass make sure achieve result: <a class="default" href="/default"> </a> ?


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -