所以我正在尝试按照此处的教程进行操作:http://guides.rubyonrails.org/getting_started.html我对正在发生的事情有一些想法,但在这一点上,我变得越来越沮丧,并且没有准备好以一种有意义的方式来看待这个问题。这是我目前的Controller。这很简单,我想我知道发生了什么:articles_controller.rbclassArticlesController路线.rbRails.application.routes.drawdoget'welcome/index'Rails.application.routes.drawdoresource:
从Laravel4.2更新到5.0后,我在应用程序的几乎每个页面中都收到以下消息:UrlGenerator.php第561行中的InvalidArgumentException:ActionArticlesController@create未定义。在我的routes.php文件中我有:Route::get('articles/create',['as'=>'articles.create','uses'=>'ArticlesController@create']);Route::post('articles/create',['as'=>'articles.create.handle'
从Laravel4.2更新到5.0后,我在应用程序的几乎每个页面中都收到以下消息:UrlGenerator.php第561行中的InvalidArgumentException:ActionArticlesController@create未定义。在我的routes.php文件中我有:Route::get('articles/create',['as'=>'articles.create','uses'=>'ArticlesController@create']);Route::post('articles/create',['as'=>'articles.create.handle'