A library for validating URLs.
Add this line to your application's Gemfile:
gem 'url_checker'
And then execute:
$ bundle
Or install it yourself as:
$ gem install url_checker
Require UrlChecker JS in your application.js
//= require url-checker
Mount UrlChecker Engine in your routes.rb
mount UrlChecker::Engine, at: "/url_checker"
Add UrlChecker meta tag in your layout
<%= url_checker_meta_tag %>
- Fork it ( https://github.com/[my-github-username]/url_checker/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 a new Pull Request