【发布时间】:2016-05-24 00:08:11
【问题描述】:
我正在开发一个 Rails 项目,该项目主要使用包罗万象的路线来渲染 Angular 前端页面。因为这个包罗万象的路线在项目中,所以我现在失去了点击的能力/rails/info/routes 这有点方便。
这是我的 routes.rb 的相关部分:
Rails.application.routes.draw do
match "/delayed_job" => DelayedJobWeb, :anchor => false, via: [:get, :post]
namespace :api, format: false, defaults: {format: :json} do
.....
get '*path' => 'base#not_found'
end
namespace :admin, format: false, except: [:show] do
.....
root 'home#index'
end
devise_for :users
get 'styleguide' => 'styleguide#index'
get '*path' => 'bootstrap#index'
root 'bootstrap#index'
end
【问题讨论】:
-
您有什么理由不能在终端中使用
rake routes吗? -
这一直是我的解决方法,通常我还是会这样做......只是想知道其他人是否有办法解决这个问题。
标签: ruby-on-rails ruby angularjs