Matching and Routes in Rails

前端 未结 3 1974
南笙
南笙 2021-02-07 18:08

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:17

    match method has been deprecated.

    Use get for GET and post for POST.

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

提交回复
热议问题