Comments on: nil.id problem: Wondering why the id 4 is getting saved in Table instead of actual id? /2007/05/29/nilid-problem-wondering-why-the-id-4-is-getting-saved-in-table-instead-of-actual-id/ Its all about Ruby On Rails Thu, 14 Mar 2013 06:19:42 +0000 hourly 1 #/?v= By: hemant /2007/05/29/nilid-problem-wondering-why-the-id-4-is-getting-saved-in-table-instead-of-actual-id/comment-page-1/#comment-346 hemant Wed, 04 Jul 2007 02:26:54 +0000 /2007/05/29/nilid-problem-wondering-why-the-id-4-is-getting-saved-in-table-instead-of-actual-id/#comment-346 nil.to_i=0 and nil.to_s="" since both the methods are defined for nil class nil.to_i=0 and nil.to_s=”" since both the methods are defined for nil class

]]>
By: Raimonds /2007/05/29/nilid-problem-wondering-why-the-id-4-is-getting-saved-in-table-instead-of-actual-id/comment-page-1/#comment-345 Raimonds Tue, 29 May 2007 21:27:39 +0000 /2007/05/29/nilid-problem-wondering-why-the-id-4-is-getting-saved-in-table-instead-of-actual-id/#comment-345 As I understand it is better to write <code> user.network = group.network </code> and then you would not get user.network_id = 4 As I understand it is better to write


user.network = group.network

and then you would not get user.network_id = 4

]]>