未初始化的常量MoviesController

时间:2017-06-23 08:11:46

标签: initialization constants

我有代码并使用rails版本5.1.1

代码文件routes.rb:

Rails.application.routes.draw do
  root "movies#index"
  resources :movies, only: [:index, :create]
end

代码文件app \ controllers \ movies_controller.rb

class MoviesController < ApplicationController
      def index
      end

      def create
        url = params[:url]
        @links = GoogleDrive.list_link_videos url
        render :index
      end
 end

当我跑的时候显示错误&#34;未初始化的常量MoviesController&#34;

你能帮助我吗?

由于

0 个答案:

没有答案