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

Answers


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

phpDocumentor 2 web interface error “Strict standards: declaration of xxx should be compatible…”

codeigniter codeigniter-2 phpdoc phpdocumentor2

I'm attempting to use the phpDocumentor web interface to generate documentation for a CodeIgniter project. When I attempt to parse the directory, I get a long list of "Strict standards" errors that...

jquery load() not working with array loop

javascript jquery arrays loops

What I am trying to do is to store a list of hundreds of files in an array and use jquery load() function to load their content one after one by a loop.