Rails hidden_field_tag integer auto converts to string?

I have a form using a hidden_field_tag. The value I put as a parameter in the hidden_field_tag is an integer but when it comes out on the other side it's a string. Does hidden field tag auto convert this? Thanks


Short answer = yes The real answer is it creates an input tag on the html side, the value you passed in as an integer gets set as value="your value here".. So anything in an input field will be a string.

Need Your Help

Does .NET (Mono) support cross-platform file operations and cross-platform audio metadata handling (through libraries)?

java .net file-io cross-platform metadata

For my next project, the two leading frontrunners are .NET and Java. The project is to take a directory (something like My Music in Windows) that contains directories and music files (MP3s initiall...

C++ win32 API Message box button clicked

c++ winapi api messagebox

I have just started learning how to program Windows GUI's using the low level Win32 API and C++ so please bear with me.