hello, I have a table that contains a belongs_to relationship which are basically a name_ID column. when i create a scaffold, i assume id have the option that would allow me to modify an ID field. is this correct? -- 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 -~----------~----~----~----~------~----~------~--~---
koloa wrote:> I have a table that contains a belongs_to relationship which are > basically a name_ID column. when i create a scaffold, i assume id have > the option that would allow me to modify an ID field. is this correct?No. Only "human readable" columns show up in the standard scaffold views. You can modify the scaffolding to do what you want though. -- Josh Susser http://blog.hasmanythrough.com -- 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 -~----------~----~----~----~------~----~------~--~---
hey thanks. i didnt even think of modifying the scaffold. you just saved me a day! =) Josh Susser wrote:> koloa wrote: >> I have a table that contains a belongs_to relationship which are >> basically a name_ID column. when i create a scaffold, i assume id have >> the option that would allow me to modify an ID field. is this correct? > > No. Only "human readable" columns show up in the standard scaffold > views. You can modify the scaffolding to do what you want though. > > -- > Josh Susser > http://blog.hasmanythrough.com-- 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 -~----------~----~----~----~------~----~------~--~---