Edge Rails: Now define your plugin’s routes in plugin’s config/routes.rb

Published on Author Akhil BansalLeave a comment

If you wrote/writing a rails plugin that need to have an entry in rails routing, you need not to ask your plugin users to make that entry in RAILS_ROOT/config/routes.rb manually any more. In the latest version of rails you can add your custum routes in your plugin config/routes.rb file. Rails will automatically load those routes.

Leave a Reply

Your email address will not be published. Required fields are marked *