Does scaffolding ignore integer fields?

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.

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs