NameError in Dossier::ReportsController#show uninitialized constant
Closed this issue · 2 comments
russellsilva commented
Dossier::ReportsController
can't seem to find my report.
Here's the error:
NameError in Dossier::ReportsController#show
uninitialized constant FooReport
Here's my report:
$ cat app/reports/FooReport.rb
class FooReport < Dossier::Reports
def sql
"select 1"
end
end
This is in a brand new Rails project to test this problem.
Rails 3.2.17, ruby 2.0.0p353.
russellsilva commented
Embarrassing. Misspelled "foo_report.rb" as "FooReport.rb". Closing.
maxehmookau commented
Sounds ridiculous, just made exactly the same mistake 👍 so thanks!