Matching and Routes in Rails

前端 未结 3 1105
执笔经年
执笔经年 2021-02-07 18:16

I generated a controller and changed the routes but opening the links yields errors on my local server.

Generating controller and routes



        
3条回答
  •  眼角桃花
    2021-02-07 18:18

    match method has been deprecated.

    Use get for GET and post for POST.

    get '/about', to: 'static_pages#about'

提交回复
热议问题