7

My code works.
Well, it should, but not like this.
I've set some datas to a nested form,  saved by a variable named 'stat1', however the code won't work unless I use a variable named 'fields'. Not 'stat1'. I'm only 24 years old and I already feel too old for this shit.

Comments
  • 0
    Which language do you use?
  • 1
    Is it the number in the variable name that is the problem? Is it a reserved variable? Is it used elsewhere in the code or by a library? Scope?
  • 1
    I was using ruby (on rails) and I realized after 30mn of staring at my code that I assigned this 'fields' variable to a helper, so that's why I couldn't use anything else
Add Comment