是否有任何 gem/插件可用于使用 ruby​​ on rails 创建您自己的 url 缩短器服务 [英] Is there any gem/plugin available to create your own url shortener service using ruby on rails

查看:37
本文介绍了是否有任何 gem/插件可用于使用 ruby​​ on rails 创建您自己的 url 缩短器服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我自己的项目创建一个 url 缩短服务.基本上我是通过短信发送一些信息,所以这就是我需要缩短 URL 的原因.我不想使用 google url shortner 或其他一些可用的服务.

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.

是否有任何可用的 gem 或插件可用于 Rails,类似这样的东西

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)

从谷歌搜索我开始知道很多用 PHP 编写的.

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

推荐答案

有几个.

您应该检查:https://github.com/search?type=Everything&language=Ruby&q=url+shortener

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

这篇关于是否有任何 gem/插件可用于使用 ruby​​ on rails 创建您自己的 url 缩短器服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆