jesse cai
2006-Feb-08 10:48 UTC
[Rails] why sqlserver column with ''user_id'' can not display in rails scaffold?
Hi, I have a table with columns : id,user_id,nickname,create_time. and i create my rails application , with scaffold, it can not display user_id column, others are correct, Why? -- Best Regards, Caiwangqin http://www.uuzone.com Mobile: +8613951787088 Tel: +86025-84818086 ext 233 Fax: +86025-84814993 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060208/147e66e9/attachment.html
Mikkel Bruun
2006-Feb-08 11:29 UTC
[Rails] why sqlserver column with ''user_id'' can not display in
On Wednesday, February 08, 2006, at 6:48 PM, jesse cai wrote:>Hi, > >I have a table with columns : id,user_id,nickname,create_time. and i >create my rails application , with scaffold, it can not display user_id >column, others are correct, Why? > >--I guess the scaffold code filters out fields called _id... Is this a bug? Perhaps...but the general approach in Rails is to only use _id for associations. Instead of user_id use username or login Mikkel Bruun www.strongside.dk - Football Portal(DK) nflfeed.helenius.org - Football News(DK) ting.minline.dk - Buy Old Stuff!(DK) -- Posted with http://DevLists.com. Sign up and save your time!