Skip to content
railsengines.com

Rails URL Shortener

RailsUrlShortener is a lightweight Rails engine for short URLs. Ip logger capabilities too

No ratings yet
Gem
rails_url_shortener
Repository
a-chacon/rails-url-shortener
License
GPL-3.0
Stars
20
Added
August 10, 2026

About

RailsUrlShortener is a lightweight Rails engine for short URLs. Ip logger capabilities too.

RailsUrlShortener is a small Rails engine that provides your app with short URL functionality and IP logging capabilities - like having your own Bitly service. By default, RailsUrlShortener saves all visits to your links for future analysis or other interesting uses.

What you get

  • Generate unique keys for links
  • Provide a controller method that finds, saves request information, and performs a 301 redirect to the original URL
  • Associate short links with models in your app
  • Save browser, system, and IP data from each request
  • Create temporary short links using the expires_at option
  • Get IP data from a third-party service

Installing it

ruby
# Gemfile
gem "rails_url_shortener"

Details

20 stars on GitHub · GPL-3.0 licensed · maintained by a-chacon. Source: https://github.com/a-chacon/rails-url-shortener

Discussion (0)

Sign in to join the discussion.

No comments yet.