Okay so I am unsure why the change made a difference but camelCase is generally considered poor syntax for variables in ruby.(Padrino may be calling a method such as underscore on your variable i.e.
"tokenID".underscore.to_sym
#=>:token_id
Using underscored_variables instead. (e.g. :tokenID
becomes :token_id
. This structure also allows for interacting with databases in a nicer way as well since your columns will have names such as token_id
not tokenID
.
There are uses for camelCasing in ruby and rails such as class
naming and generators
but trying keep all local and instance variables in lowercase underscore format.
I don't do much work in padrino
so I am not 100% sure why this change helped but I am glad I could help.