# Does scaffolding ignore integer fields?

**URL:** <https://www.ruby-forum.com/t/does-scaffolding-ignore-integer-fields/85798>\
**Category:** Rails\
**Created:** [February 16, 2007, 12:42pm UTC](https://www.ruby-forum.com/t/does-scaffolding-ignore-integer-fields/85798 "2007-02-16T12:42:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![surfivor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/47e85d/32.png) [@surfivor](https://www.ruby-forum.com/u/surfivor)\
**Post date:** [February 16, 2007, 12:42pm UTC](https://www.ruby-forum.com/t/does-scaffolding-ignore-integer-fields/85798/1 "2007-02-16T12:42:30Z")

</div>

I have been using scaffolding, but it seemed like if I had an integer  
field the forms that get generated don’t have inputs for them, unless  
I missed something there, not sure. If this is true, it encourages me  
to use string fields when I might have used integers. If I am sort of  
lazy and working on my own low traffic sites, I don’t really care, but  
I was just wondering because people will pick your code appart,  
particularly if you have a job interview and they want to look at code  
you have written.

I also tend to do stuff like myfunct(myrec.id) all the time because I  
am never really sure when the id field is assumed and it’s sort of a  
minor detail I never concern myself with and using the id field  
explicitly seems like it’s clear what’s going on, but some people pick  
this stuff all apart.

---

<div class="post-metadata">

**Author:** ![surfivor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/47e85d/32.png) [@surfivor](https://www.ruby-forum.com/u/surfivor)\
**Post date:** [February 20, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/does-scaffolding-ignore-integer-fields/85798/2 "2007-02-20T18:35:52Z")

</div>

surfivor wrote:

> I have been using scaffolding, but it seemed like if I had an integer  
> field the forms that get generated don’t have inputs for them, unless  
> I missed something there, not sure. If this is true, it encourages me  
> to use string fields when I might have used integers. If I am sort of  
> lazy and working on my own low traffic sites, I don’t really care, but  
> I was just wondering because people will pick your code appart,  
> particularly if you have a job interview and they want to look at code  
> you have written.
> 
> I also tend to do stuff like myfunct(myrec.id) all the time because I  
> am never really sure when the id field is assumed and it’s sort of a  
> minor detail I never concern myself with and using the id field  
> explicitly seems like it’s clear what’s going on, but some people pick  
> this stuff all apart.

Scaffolding supports integer.  
An input field for the id field is not created in the CRUD view  
templates.
