返回老旧博客

as: 选项可以修改默认生成的具名路由名称

Rails.application.routes.draw do
    root 'static_pages#home'
    get '/help', to: 'static_pages#help', as: 'helf'
    get '/about', to: 'static_pages#about'
    get '/contact', to: 'static_pages#contact'
end

评论 · 0

还没有评论。