reasoncorp/dossier

NameError in Dossier::ReportsController#show uninitialized constant

Closed this issue · 2 comments

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.

Embarrassing. Misspelled "foo_report.rb" as "FooReport.rb". Closing.

Sounds ridiculous, just made exactly the same mistake 👍 so thanks!