我有代码并使用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;
你能帮助我吗?
由于