Neville Burnell
2005-Mar-10 01:14 UTC
RE: Confused about extending the login generator ''user'' [fixed]
>> that should be "belongs_to :user_type"Bingo! -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jarkko Laine Sent: Wednesday, 9 March 2005 6:59 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] Confused about extending the login generator ''user'' On 9.3.2005, at 08:48, Neville Burnell wrote:> If I comment out the ''belongs_to: user_type'' then the app runs. If I > leave it in then I get the failure above.This should be "belongs_to :user_type". The colon means that the following name (here user_type) is a Ruby symbol (http://onestepback.org/articles/tdddemo/rubysymbols.html). //jarkko -- Jarkko Laine http://jlaine.net http://odesign.fi