Hi all. I’m new to Ruby and Rails so please bear with. I’m creating
an app to maintain a birders life list. One of the Models I need is
Genus. The plural of Genus is Genera. So, my table is titled Genera
and in my genus.rb I have the line ‘self.table_name = “genera”’. My
first hurdle was that when I generate the scaffold it still wanted a
table called genus. Got around that by creating a view genus as
suggested somewhere. Now the scaffold (genus_maint) generates but when
I try to execute I get a “uninitialized constant Genu” when the list
method is trying to paginate:
‘@genus_pages, @genus = paginate :genus, :per_page => 10’
It’s as if rails is trying to singularize “genus”. Actually, what it
is really trying to do is constantize it.
Here’s the full trace:
Hope this looks okay. I haven’t tried any formatting on this question.
TIA for any advice.