Skip to content

A gem for rails which u can split routes.rb into smaller parts.

License

Notifications You must be signed in to change notification settings

winterbang/wow-route

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wow::Route

A gem for rails which u can split routes.rb into smaller parts.

中文文档 Chinese document

Installation

Add this line to your application's Gemfile:

gem 'wow-route', :git => 'https://github.com/winterbang/wow-route.git'

And then execute:

$ bundle

Or install it yourself as:

$ gem install wow-route

Usage

Running command below to generate a admin.rb file in config/routes directory:

$ rails g wow:route admin

and then u can edit this file like config/routes.rb. For example

namespace :admin do
  resources :posts, :comments
end

For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html.

Contributing

If there is any thing you'd like to contribute or fix, please:

  • Fork the repo
  • Add tests for any new functionality
  • Make your changes
  • Verify all new & existing tests pass
  • Make a pull request

License

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

Group

欢迎加入Telegram Ruby 群

About

A gem for rails which u can split routes.rb into smaller parts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages