I have namespace in my routes file:
namespace :admin do root to: 'posts#index', as: '/' resources :posts, except: :show resources :users, except: :show resources :apps, except: :show end
I’m a little confused about the
as: '/' part. The / (slash) seems to evaluate to nothing. For example, if i rewrite the route as:
root to: 'posts#index', as: ''
The route appears to be the same. I guess I’m just looking for some validation that this is, in fact, ok and I’m not going to get burned later. I can’t seem to find any documentation on it.