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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---