0.0
No commit activity in last 3 years
No release in over 3 years
Split your app's routes file
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
 Project Readme

MultipleRoutes

Install this gem if you want to manage your app's routes in a smarter way. You'll be able to split routes files into a routes folder and keep everything tidy and clean.

Installation

Go for it, install like this:

gem 'multiple_routes' # In your gemfile

Then bundle install.

Usage

Simply create a folder in your config/ called routes and create any file as follows:

# config/routes/api.rb
namespace :api, defaults: {format: 'json'} do
    namespace :v1 do
        resources :posts do
            # Whatever...
        end
    end
end

Then in your routes.rb file:

Deploydapp::Application.routes.draw do
    # example posts resource
    resources :posts do
        resources :pull_requests
    end
    # Api namespace
    draw :api
end