Is there any gem/plugin available to create your own url shortener service using ruby on rails

扶醉桌前 提交于 2019-12-11 01:44:56

问题


I want to create a service for url shorten for my own project.Basically I am sending some information via sms, so thats why I need to shorten the URL. I don't want to use google url shortner or some other services available.

We want to have our own custom url shortner.

Is there any gem or plugin available for this for rails, something like this

 short_url = plugin_function_with_some_configurations(long_url)
 long_url = plugin_function_with_some_configurations(short_url)

as from google search i came to know many of those written in PHP.


回答1:


There are several.

You should check: https://github.com/search?type=Everything&language=Ruby&q=url+shortener

or https://rubygems.org/search?utf8=%E2%9C%93&query=shortener



来源:https://stackoverflow.com/questions/7302700/is-there-any-gem-plugin-available-to-create-your-own-url-shortener-service-using

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!