Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
李洋
@liyangmsn
Member
NO. 29610 / 2016-12-01

1 Topics / 3 Replies
0 Followers
1 Following
0 Favorites
GitHub Public Repos
More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 5.x 中动态路由如何指定 namespace at January 04, 2017

    #6 楼 @huacnlee 官方文档是这样写的 但是这样的话 url 前面就必须加 app 才行

  • 5.x 中动态路由如何指定 namespace at January 04, 2017
    namespace :app do
      get ':controller(/:action(/:id))'
    end
    

    #4 楼 @huacnlee

  • 5.x 中动态路由如何指定 namespace at January 04, 2017

    #1 楼 @huacnlee 非常感谢,这些文档之前都有看过,这个方法会报错::controller segment is not allowed within a namespace block

关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English