Ruby on rails “No route matches”

后端 未结 5 1870
北荒
北荒 2021-02-20 09:06

I am new to Rails and am just implementing some basic applications. Just starting on my second app and have run into what is a basic problem, but Google is yielding me nothing.

5条回答
  •  臣服心动
    2021-02-20 09:45

    you can use

    match 'admin_login' => 'user#admin_login', :as =>'admin_login'
    

    default method for this call is post u can change method behavior by using

    :via => [:post/:put/:get]
    

提交回复
热议问题