ruby on rails 4 - Escape string to url-fit -


i want escape string nice looking in url. example white-spaces changed '_'. thing that's bother me '%number'.. site has multi-languages words.

<%= link_to tag.name tag_details_path(tag.id,url_encode(tag.name)) %> 

so url_encode doesn't fit me.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -