Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.14 KB

README.md

File metadata and controls

51 lines (40 loc) · 1.14 KB

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 群