Shortenizer
Shortenizer is a tiny mountable URL shortener for your Rails application.
Installation
- Install the gem by adding it to your Gemfile.
- Mount the engine by adding this to your routes file.
mount Shortenizer::Engine => "/your-preferred-route"
- Run migrations
rake db:migrate
Usage
To shorten a link, visit:
http://your-app-host/your-preferred-route/shorten
To view all the routes that this engine has, run:
rake routes
Customization
- If you want to change the style of the form, see the CSS classes used here.
To do
- Add the abiility for the shortener to be used only for authenticated users.
Contributing
- Fork it ( http://github.com/fteem/shortenizer/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request