0.0
The project is in a healthy, maintained state
List the correspondence of the paths you want to redirect in config/redirect.yml.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

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.