请原谅我的无知,但我不仅是Ruby的新手,而且是一般编程的新手。我正在研究rubyonrails.org上有关边缘指南的示例。并收到以下错误,尽管检查了自应用程序上次运行以来我输入的每一段代码,但我无法修复它。NoMethodErrorinPostsController#createundefinedmethod`permit'for{"title"=>"","text"=>""}:ActiveSupport::HashWithIndifferentAccess这就是我的posts_controller.rb的样子:classPostsController我做错了什么?提前感谢您的
我对编码还很陌生,所以我决定开始阅读4.0.0版的RubyonRails指南,但遇到了一个又一个问题。我目前运行的是4.0.0版,我已逐步按照指南进行操作。一旦我达到5.2Firstform,我开始出现错误,并使用其他人的帖子来解决我的问题,但这个错误似乎并没有发生在其他人身上,所以这里是:NoMethodErrorinPostsController#indexundefinedmethod`action'forPostsController(Tabledoesn'texist):Class这是我的代码:classPostsController这是我的看法:Title:Text:我的表
当我存储帖子时出现此错误MethodNotAllowedHttpExceptioninRouteCollection.phpline219:什么会导致这个问题??路由.php:Route::get('home','PostsController@index');Route::get('/','PostsController@index');Route::get('index','PostsController@index');Route::get('posts','PostsController@index');Route::get('post/{slug}/{id}','PostsC
当我存储帖子时出现此错误MethodNotAllowedHttpExceptioninRouteCollection.phpline219:什么会导致这个问题??路由.php:Route::get('home','PostsController@index');Route::get('/','PostsController@index');Route::get('index','PostsController@index');Route::get('posts','PostsController@index');Route::get('post/{slug}/{id}','PostsC
我正在尝试使用cakephp。所以我开始使用cakephp演示博客应用程序。我按照教程的前几个步骤进行操作,当我尝试加载帖子Controller时,它说MissingViewError:TheviewforPostsController::index()wasnotfound.Error:Confirmyouhavecreatedthefile:T:\ProjectFolders\NetBeans\cakeBlog\app\View\Posts\index.ctp我在stackoverflow、cakephp论坛甚至googlegroups中都搜索了很多关于这个的内容,但似乎没有一个解