简体   繁体   中英

Rails still throwing error for page that doesn't exist?

I used to have a class Uploads that I later decided to delete. I ran a migration to drop the table, made sure my schema was updated, manually deleted the associated views and controllers, etc. I even ran a grep through my directory to check for traces of "upload" or references to it. However, when I try to access my page I get an error in the console -- 500 Service Error. the log says:

ActionView::MissingTemplate (Missing template /app\views\upload\uploadfile.rhtml with     {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in:
  * "/Users/claire/Documents/folio/app/views"
  * "/Users/claire/Documents/folio"
  * "/"
):
  app/controllers/upload_controller.rb:3:in `index'

...But neither of those documents exist anymore. I tried clearing my cache and cookies an it has the same effect. What could be causing this?!

My routes.rb file

Folio::Application.routes.draw do
  resources :projects

  #get "home/index"
  root :to => "projects#new"
  match 'project/new',:controller=>"projects",:action=>"create"
  match "project/:id", :controller => "projects", :action=>"download"
  match "projects_controller/filter_list", :controller => "projects", :action => "filter_list"
end

Can you post your routes file? I think the problem is that you still have routes pointing to the deleted controller.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM