Skip to content

slidict/redirect-rails

Repository files navigation

Redirect::Rails

This gem provides 302 redirect functionality in rails.

Installation

Add this line to your application's Gemfile:

gem 'redirect-rails'

And then execute:

$ bin/rails redirect:install

Usage

List the correspondence of the paths you want to redirect in config/redirect.yml."

paths

In the config/redirect.yml file, you can write redirect settings as follows.

paths:
  /regexp/([^/]+): /redirected/regexp/<%= $1 %>
  /static/failuer: /static/true

Contributing

  • No test code yet. Pull requests are welcome.

-Bug reports and pull requests are welcome on GitHub at https://github.com/slidict/redirect-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Redirect::Rails project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

Provide a routing table dedicated to redirect in rails.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published