Ok, through extreme trial and error I’ve managed not to bug this list
(and I’m a Windows guy that managed to install Rails on my ISP’s Apache
VirtualHost with symlinks to get it working inside a PHP app) but this
one has me stumped.
I learned that Rails turns tinyint(1) fields into boolean but I don’t
see why the “generate scaffold” fails when a field is named “open”. If
I change the name it’s fine, if I change the field type it’s also fine.
It’s only this magic combination of naming a field “open” when it’s a
when I call:
./script/generate scaffold MyClass
I get some files and then:
wrong number of arguments (0 for 1)
I know the workaround but some questions:
Would there have been a better way to debug the error? Seems sorta
vague and left me hanging, not knowing where to look.
Is there a doc that specifies all these ActiveRecord auto-behaviours
in a summary format (vs. being spread across 10 different places?)
Could I prevent “generate scaffold” from turning my tinyint into a
boolean if I wanted? Not that I do but I’m curious.