Skip to content

sunteya/path_rewriter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

create path_rewriter.rb at config/initializers/ and append:

PathRewriter::Rails.enable do |p|
  p.codec.base_path = Settings.base_path
  p.codec.root_path = ActionController::Base.relative_url_root
end

About

rewrite rails generate path and route

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages