Hi, everyone. I'm working on a program in Rails 3.0.10 and it has a
custom action, "run_files", that extracts data in files and saves it in
database. When I clicked the link on the page, it returned an error
ActiveRecord::RecordNotFound in ReportsController#show
Couldn't find Report with ID=run_files
I wonder why Rails rendered show instead of the custom action.
Following is the view file, route file and the output of rake routes.
<%= link_to "Process Files", :controller => 'reports', :action =>
match "reports/run_files" => "reports#run_files", :via => :post
output of rake routes
reports_run_files POST /reports/run_files(.:format)
Thanks in advance.