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.